aboutsummaryrefslogtreecommitdiffstats
path: root/themes/smartpocket/admin
diff options
context:
space:
mode:
authormistic100 <mistic@piwigo.org>2014-01-11 13:08:26 +0000
committermistic100 <mistic@piwigo.org>2014-01-11 13:08:26 +0000
commitbbb59ee3f9576a8e7bb47cfa384287b94ad63e9b (patch)
tree67f9800e5e4d297ff8534923fadaa055d950cf34 /themes/smartpocket/admin
parentbd080506705f500d6019cf38f7aaf1bc41c277c6 (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 'themes/smartpocket/admin')
-rw-r--r--themes/smartpocket/admin/upgrade.inc.php5
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)