From b12f6314c43aa013e80e10414cf41eac988c26fa Mon Sep 17 00:00:00 2001 From: plegall Date: Wed, 12 Nov 2014 13:34:53 +0000 Subject: fixes #288 on branch 2.7 (cherry-pick of commit 40256be64a61f3f8fda734a292d47c0ba4d54c1c from master) bug 3174 fixed: avoid using load_conf_from_db, use 3rd parameter updateGlobal instead git-svn-id: http://piwigo.org/svn/trunk@30460 68402e56-0260-453c-a942-63ccdbb3a9ee --- themes/smartpocket/themeconf.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'themes/smartpocket/themeconf.inc.php') diff --git a/themes/smartpocket/themeconf.inc.php b/themes/smartpocket/themeconf.inc.php index 83ffd505e..419e7a68b 100644 --- a/themes/smartpocket/themeconf.inc.php +++ b/themes/smartpocket/themeconf.inc.php @@ -109,7 +109,7 @@ add_event_handler('init', 'mobile_link'); function mobile_link() { global $template, $conf; - $config = unserialize( $conf['smartpocket'] ); + $config = safe_unserialize( $conf['smartpocket'] ); $template->assign( 'smartpocket', $config ); if ( !empty($conf['mobile_theme']) && (get_device() != 'desktop' || mobile_theme())) { -- cgit v1.2.3