From 7638575de3179edbada18b1a7bcc6c492d07c651 Mon Sep 17 00:00:00 2001 From: rub Date: Mon, 4 Dec 2006 21:57:23 +0000 Subject: 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 --- install/db/30-database.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 = ' -- cgit v1.2.3