diff options
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) |