mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
bug:3098
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:
@@ -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')
|
||||
)
|
||||
);
|
||||
|
||||
@@ -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')),
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user