aboutsummaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authorrub <rub@piwigo.org>2006-12-04 21:57:23 +0000
committerrub <rub@piwigo.org>2006-12-04 21:57:23 +0000
commit7638575de3179edbada18b1a7bcc6c492d07c651 (patch)
tree27a447dc725a77cbead5469ed69e8c90db26352a /install
parent4c7e7fb0fb9cca9b2d32940a0b1477b03e0801ee (diff)
Fixed: Use old $conf to insert in #_config
Only to help for next migration See http://svn.gna.org/viewcvs/phpwebgallery?rev=1565&view=rev git-svn-id: http://piwigo.org/svn/trunk@1634 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--install/db/30-database.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/install/db/30-database.php b/install/db/30-database.php
index 5770d425e..bcb209d9b 100644
--- a/install/db/30-database.php
+++ b/install/db/30-database.php
@@ -33,7 +33,9 @@ if (!defined('PHPWG_ROOT_PATH'))
$upgrade_description = 'Add history_guest and login_history to #config';
$query = '
-INSERT INTO '.PREFIX_TABLE."config (param,value,comment) VALUES ('history_admin','false','keep a history of administrator visits on your website');";
+INSERT INTO '.PREFIX_TABLE."config (param,value,comment) VALUES ('history_admin',".
+((isset($conf['history_admin']) and $conf['history_admin']) ? 'true' : 'false').
+",'keep a history of administrator visits on your website');";
pwg_query($query);
$query = '