diff options
Diffstat (limited to '')
-rw-r--r-- | include/page_tail.php | 2 | ||||
-rw-r--r-- | themes/smartpocket/themeconf.inc.php | 2 |
2 files changed, 2 insertions, 2 deletions
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') ) ); 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')),
));
}
}
|