diff options
author | mistic100 <mistic@piwigo.org> | 2014-01-11 13:08:26 +0000 |
---|---|---|
committer | mistic100 <mistic@piwigo.org> | 2014-01-11 13:08:26 +0000 |
commit | bbb59ee3f9576a8e7bb47cfa384287b94ad63e9b (patch) | |
tree | 67f9800e5e4d297ff8534923fadaa055d950cf34 /themes/smartpocket | |
parent | bd080506705f500d6019cf38f7aaf1bc41c277c6 (diff) |
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
Diffstat (limited to '')
-rw-r--r-- | themes/smartpocket/admin/upgrade.inc.php | 5 |
1 files changed, 1 insertions, 4 deletions
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) |