diff options
author | flop25 <flop25@piwigo.org> | 2014-07-05 15:29:59 +0000 |
---|---|---|
committer | flop25 <flop25@piwigo.org> | 2014-07-05 15:29:59 +0000 |
commit | 012fc98041711fe3cd6c41ae0530d2fd31e4218f (patch) | |
tree | 0c5df350fba9b2a06c73de60a0551822b029da3e /themes/smartpocket | |
parent | f140339c7dcac4c4670421b5619b80a84eac131e (diff) |
bug:3098
redirect to the current page when switching
git-svn-id: http://piwigo.org/svn/trunk@28952 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'themes/smartpocket')
-rw-r--r-- | themes/smartpocket/themeconf.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/themes/smartpocket/themeconf.inc.php b/themes/smartpocket/themeconf.inc.php index 0bcca9def..9cfa61822 100644 --- a/themes/smartpocket/themeconf.inc.php +++ b/themes/smartpocket/themeconf.inc.php @@ -114,7 +114,7 @@ function mobile_link() if ( !empty($conf['mobile_theme']) && (get_device() != 'desktop' || mobile_theme()))
{
$template->assign(array(
- 'TOGGLE_MOBILE_THEME_URL' => add_url_params(duplicate_index_url(),array('mobile' => mobile_theme() ? 'false' : 'true')),
+ 'TOGGLE_MOBILE_THEME_URL' => add_url_params(htmlspecialchars($_SERVER['REQUEST_URI']),array('mobile' => mobile_theme() ? 'false' : 'true')),
));
}
}
|