From 56ba20e05f74912eb0cf7d8285f38ce6224d11bf Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Fri, 21 Aug 2009 21:54:01 -0600 Subject: [PATCH] lib/base.local.php -> config/horde.local.php --- ansel/lib/base.load.php | 21 +++++++++------------ chora/lib/base.load.php | 19 ++++++++----------- gollem/lib/base.load.php | 19 ++++++++----------- imp/lib/Application.php | 6 ++---- ingo/lib/base.load.php | 19 ++++++++----------- jeta/lib/base.load.php | 19 ++++++++----------- kronolith/lib/base.load.php | 19 ++++++++----------- nag/lib/base.load.php | 19 ++++++++----------- skeleton/lib/base.load.php | 19 ++++++++----------- timeobjects/lib/base.php | 20 +++++++++----------- turba/lib/base.load.php | 19 ++++++++----------- 11 files changed, 84 insertions(+), 115 deletions(-) diff --git a/ansel/lib/base.load.php b/ansel/lib/base.load.php index f38bf4c9b..a91f176e9 100644 --- a/ansel/lib/base.load.php +++ b/ansel/lib/base.load.php @@ -7,22 +7,19 @@ * See the enclosed file COPYING for license information (GPL). If you * did not receive this file, see http://www.fsf.org/copyleft/gpl.html. * - * @package Turba + * @package Ansel */ -$curr_dir = dirname(__FILE__); +if (!defined('ANSEL_BASE')) { + define('ANSEL_BASE', dirname(__FILE__) . '/..'); +} if (!defined('HORDE_BASE')) { - /* Temporary fix - if horde does not live directly under the app - * directory, the HORDE_BASE constant should be defined in - * lib/base.local.php. */ - if (file_exists($curr_dir . '/base.local.php')) { - include $curr_dir . '/base.local.php'; + /* If horde does not live directly under the app directory, the HORDE_BASE + * constant should be defined in config/horde.local.php. */ + if (file_exists(ANSEL_BASE . '/config/horde.local.php')) { + include ANSEL_BASE . '/config/horde.local.php'; } else { - define('HORDE_BASE', $curr_dir . '/../..'); + define('HORDE_BASE', ANSEL_BASE . '/..'); } } - -if (!defined('ANSEL_BASE')) { - define('ANSEL_BASE', $curr_dir . '/..'); -} diff --git a/chora/lib/base.load.php b/chora/lib/base.load.php index a763fd5ec..ddc9a887e 100644 --- a/chora/lib/base.load.php +++ b/chora/lib/base.load.php @@ -10,19 +10,16 @@ * @package Chora */ -$curr_dir = dirname(__FILE__); +if (!defined('CHORA_BASE')) { + define('CHORA_BASE', dirname(__FILE__) . '/..'); +} if (!defined('HORDE_BASE')) { - /* Temporary fix - if horde does not live directly under the app - * directory, the HORDE_BASE constant should be defined in - * lib/base.local.php. */ - if (file_exists($curr_dir . '/base.local.php')) { - include $curr_dir . '/base.local.php'; + /* If horde does not live directly under the app directory, the HORDE_BASE + * constant should be defined in config/horde.local.php. */ + if (file_exists(CHORA_BASE . '/config/horde.local.php')) { + include CHORA_BASE . '/config/horde.local.php'; } else { - define('HORDE_BASE', $curr_dir . '/../..'); + define('HORDE_BASE', CHORA_BASE . '/..'); } } - -if (!defined('CHORA_BASE')) { - define('CHORA_BASE', $curr_dir . '/..'); -} diff --git a/gollem/lib/base.load.php b/gollem/lib/base.load.php index 6d8432b39..d6fcbe5c8 100644 --- a/gollem/lib/base.load.php +++ b/gollem/lib/base.load.php @@ -10,19 +10,16 @@ * @package Gollem */ -$curr_dir = dirname(__FILE__); +if (!defined('GOLLEM_BASE')) { + define('GOLLEM_BASE', dirname(__FILE__) . '/..'); +} if (!defined('HORDE_BASE')) { - /* Temporary fix - if horde does not live directly under the app - * directory, the HORDE_BASE constant should be defined in - * lib/base.local.php. */ - if (file_exists($curr_dir . '/base.local.php')) { - include $curr_dir . '/base.local.php'; + /* If horde does not live directly under the app directory, the HORDE_BASE + * constant should be defined in lib/horde.local.php. */ + if (file_exists(GOLLEM_BASE . '/config/horde.local.php')) { + include GOLLEM_BASE . '/config/horde.local.php'; } else { - define('HORDE_BASE', $curr_dir . '/../..'); + define('HORDE_BASE', GOLLEM_BASE . '/..'); } } - -if (!defined('GOLLEM_BASE')) { - define('GOLLEM_BASE', $curr_dir . '/..'); -} diff --git a/imp/lib/Application.php b/imp/lib/Application.php index 54dd55cc6..06c8ad4d7 100644 --- a/imp/lib/Application.php +++ b/imp/lib/Application.php @@ -1,10 +1,8 @@