aboutsummaryrefslogtreecommitdiffstats
path: root/themes/smartpocket/admin
diff options
context:
space:
mode:
Diffstat (limited to 'themes/smartpocket/admin')
-rw-r--r--themes/smartpocket/admin/upgrade.inc.php5
1 files changed, 4 insertions, 1 deletions
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)