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