redirect to the current page when switching

git-svn-id: http://piwigo.org/svn/trunk@28952 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
flop25
2014-07-05 15:29:59 +00:00
parent f140339c7d
commit 012fc98041
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -70,7 +70,7 @@ if ( !empty($conf['mobile_theme']) && (get_device() != 'desktop' || mobile_theme
{
$template->assign('TOGGLE_MOBILE_THEME_URL',
add_url_params(
duplicate_index_url(),
htmlspecialchars($_SERVER['REQUEST_URI']),
array('mobile' => mobile_theme() ? 'false' : 'true')
)
);
+1 -1
View File
@@ -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')),
));
}
}