aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormistic100 <mistic@piwigo.org>2014-01-11 13:21:05 +0000
committermistic100 <mistic@piwigo.org>2014-01-11 13:21:05 +0000
commitdfea0da88f04d1a3edee230555716f193c699c35 (patch)
tree7bf538a9a1d7f269e1fb1a2f26f75f584bca0e5d
parentbbb59ee3f9576a8e7bb47cfa384287b94ad63e9b (diff)
revert file mistakenly comited in 26618
git-svn-id: http://piwigo.org/svn/trunk@26620 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-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)