From dfea0da88f04d1a3edee230555716f193c699c35 Mon Sep 17 00:00:00 2001 From: mistic100 Date: Sat, 11 Jan 2014 13:21:05 +0000 Subject: revert file mistakenly comited in 26618 git-svn-id: http://piwigo.org/svn/trunk@26620 68402e56-0260-453c-a942-63ccdbb3a9ee --- themes/smartpocket/admin/upgrade.inc.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'themes/smartpocket') diff --git a/themes/smartpocket/admin/upgrade.inc.php b/themes/smartpocket/admin/upgrade.inc.php index 34ab43dcc..709cab495 100644 --- a/themes/smartpocket/admin/upgrade.inc.php +++ b/themes/smartpocket/admin/upgrade.inc.php @@ -10,7 +10,10 @@ if (!isset($conf['smartpocket'])) 'loop' => true,//true - false 'autohide' => 5000,//5000 - 0 ); - conf_update_param('smartpocket', pwg_db_real_escape_string(serialize($config))); + $query = " +INSERT INTO " . CONFIG_TABLE . " (param,value,comment) +VALUES ('smartpocket' , '".pwg_db_real_escape_string(serialize($config))."' , 'loop#autohide');"; + pwg_query($query); load_conf_from_db(); } elseif (count(unserialize( $conf['smartpocket'] ))!=2) -- cgit v1.2.3