Changeset 5213 for trunk/upgrade.php


Ignore:
Timestamp:
Mar 21, 2010, 1:32:49 PM (14 years ago)
Author:
nikrou
Message:

Feature 1522 : move database config file to local directory
(include/config_database.inc.php becomes local/config/database.inc.php)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/upgrade.php

    r5207 r5213  
    2525
    2626// load config file
    27 $config_file = PHPWG_ROOT_PATH.'include/config_database.inc.php';
     27$config_file = PHPWG_ROOT_PATH.'local/config/database.inc.php';
    2828$config_file_contents = @file_get_contents($config_file);
    2929if ($config_file_contents === false)
     
    4141include_once(PHPWG_ROOT_PATH.'admin/include/functions_upgrade.php');
    4242
    43 include(PHPWG_ROOT_PATH.'include/config_database.inc.php');
     43include(PHPWG_ROOT_PATH.'local/config/database.inc.php');
    4444include(PHPWG_ROOT_PATH . 'include/config_default.inc.php');
    4545@include(PHPWG_ROOT_PATH. 'include/config_local.inc.php');
     
    268268    include($upgrade_file);
    269269
    270     // Something to add in config_database.inc.php?
     270    // Something to add in database.inc.php?
    271271    if (!empty($mysql_changes))
    272272    {
     
    280280        array_push($page['infos'],
    281281                   l10n_args('in <i>%s</i>, before <b>?></b>, insert:',
    282                              'include/config_database.inc.php') .
     282                             'local/config/database.inc.php') .
    283283                   '<p><textarea rows="4" cols="40">' .
    284284                   implode("\r\n" , $mysql_changes).'</textarea></p>'
Note: See TracChangeset for help on using the changeset viewer.