From 2f0a556948d74adacea7e22502efa804a3aea25e Mon Sep 17 00:00:00 2001 From: gwoo Date: Tue, 20 May 2008 01:21:10 +0000 Subject: [PATCH] closes #4576, check for defines git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6980 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/config/paths.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cake/config/paths.php b/cake/config/paths.php index f98521fa6..c06e07676 100644 --- a/cake/config/paths.php +++ b/cake/config/paths.php @@ -45,7 +45,9 @@ /** * Path to the application's directory. */ +if (!defined('APP')) { define ('APP', ROOT.DS.APP_DIR.DS); +} /** * Path to the application's models directory. */ @@ -83,7 +85,9 @@ /** * Path to the configuration files directory. */ +if (!defined('CONFIGS')) { define ('CONFIGS', APP.'config'.DS); +} /** * Path to the libs directory. */ @@ -174,6 +178,7 @@ if (!defined('VENDORS')) { /** * Full url prefix */ +if (!defined('FULL_BASE_URL')) { $s = null; if (env('HTTPS')) { $s ='s'; @@ -185,6 +190,7 @@ if (!defined('VENDORS')) { define('FULL_BASE_URL', 'http'.$s.'://'.$httpHost); } unset($httpHost, $s); +} /** * Web path to the public images directory. */