From 85c1c1b1ea1cdbb6c6903e0cec11d86a79f750ad Mon Sep 17 00:00:00 2001 From: nikrou Date: Sun, 21 Mar 2010 12:32:49 +0000 Subject: Feature 1522 : move database config file to local directory (include/config_database.inc.php becomes local/config/database.inc.php) git-svn-id: http://piwigo.org/svn/trunk@5213 68402e56-0260-453c-a942-63ccdbb3a9ee --- upgrade.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'upgrade.php') diff --git a/upgrade.php b/upgrade.php index e4b92834d..7063bf6b0 100644 --- a/upgrade.php +++ b/upgrade.php @@ -24,7 +24,7 @@ define('PHPWG_ROOT_PATH', './'); // load config file -$config_file = PHPWG_ROOT_PATH.'include/config_database.inc.php'; +$config_file = PHPWG_ROOT_PATH.'local/config/database.inc.php'; $config_file_contents = @file_get_contents($config_file); if ($config_file_contents === false) { @@ -40,7 +40,7 @@ include_once(PHPWG_ROOT_PATH.'include/functions.inc.php'); include_once(PHPWG_ROOT_PATH.'admin/include/functions.php'); include_once(PHPWG_ROOT_PATH.'admin/include/functions_upgrade.php'); -include(PHPWG_ROOT_PATH.'include/config_database.inc.php'); +include(PHPWG_ROOT_PATH.'local/config/database.inc.php'); include(PHPWG_ROOT_PATH . 'include/config_default.inc.php'); @include(PHPWG_ROOT_PATH. 'include/config_local.inc.php'); include(PHPWG_ROOT_PATH .'include/dblayer/functions_'.$conf['dblayer'].'.inc.php'); @@ -267,7 +267,7 @@ if (isset($_POST['submit']) and check_upgrade()) $conf['die_on_sql_error'] = false; include($upgrade_file); - // Something to add in config_database.inc.php? + // Something to add in database.inc.php? if (!empty($mysql_changes)) { $config_file_contents = @@ -279,7 +279,7 @@ if (isset($_POST['submit']) and check_upgrade()) { array_push($page['infos'], l10n_args('in %s, before ?>, insert:', - 'include/config_database.inc.php') . + 'local/config/database.inc.php') . '

' ); -- cgit v1.2.3