Ignore:
Timestamp:
Jan 17, 2011, 7:48:13 PM (13 years ago)
Author:
plg
Message:

feature 2112 added: ability to set an additional local directory
$conflocal_dir_site in local/config/multisite.inc.php

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/upgrade_feed.php

    r6363 r8722  
    3333include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
    3434include_once(PHPWG_ROOT_PATH.'admin/include/functions_upgrade.php');
    35 include(PHPWG_ROOT_PATH.'local/config/database.inc.php');
     35
     36if (is_file(PHPWG_ROOT_PATH .'local/config/multisite.inc.php'))
     37{
     38  include(PHPWG_ROOT_PATH .'local/config/multisite.inc.php');
     39  define('PWG_LOCAL_DIR', $conf['local_dir_site']);
     40}
     41else
     42{
     43  define('PWG_LOCAL_DIR', 'local/');
     44}
     45
     46include(PHPWG_ROOT_PATH.PWG_LOCAL_DIR .'config/database.inc.php');
    3647include(PHPWG_ROOT_PATH . 'include/config_default.inc.php');
    3748@include(PHPWG_ROOT_PATH. 'local/config/config.inc.php');
     49if (isset($conf['local_dir_site']))
     50{
     51  @include(PHPWG_ROOT_PATH.PWG_LOCAL_DIR. 'config/config.inc.php');
     52}
    3853include(PHPWG_ROOT_PATH .'include/dblayer/functions_'.$conf['dblayer'].'.inc.php');
    3954
Note: See TracChangeset for help on using the changeset viewer.