Skip to content

Commit

Permalink
bug:3098
Browse files Browse the repository at this point in the history
redirect to the current page when switching

git-svn-id: http://piwigo.org/svn/trunk@28952 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
flop25 committed Jul 5, 2014
1 parent f140339 commit 012fc98
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/page_tail.php
Expand Up @@ -70,7 +70,7 @@
{
$template->assign('TOGGLE_MOBILE_THEME_URL',
add_url_params(
duplicate_index_url(),
htmlspecialchars($_SERVER['REQUEST_URI']),
array('mobile' => mobile_theme() ? 'false' : 'true')
)
);
Expand Down
2 changes: 1 addition & 1 deletion themes/smartpocket/themeconf.inc.php
Expand Up @@ -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')),
));
}
}
Expand Down

0 comments on commit 012fc98

Please sign in to comment.