From 012fc98041711fe3cd6c41ae0530d2fd31e4218f Mon Sep 17 00:00:00 2001 From: flop25 Date: Sat, 5 Jul 2014 15:29:59 +0000 Subject: bug:3098 redirect to the current page when switching git-svn-id: http://piwigo.org/svn/trunk@28952 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/page_tail.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/page_tail.php') diff --git a/include/page_tail.php b/include/page_tail.php index da082d4bb..f47dc2d91 100644 --- a/include/page_tail.php +++ b/include/page_tail.php @@ -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') ) ); -- cgit v1.2.3