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
This commit is contained in:
rub
2006-12-04 21:57:23 +00:00
parent 4c7e7fb0fb
commit 7638575de3
+3 -1
View File
@@ -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 = '