From 2f7fa90fc43730f208cc01b32035bffdb4531e84 Mon Sep 17 00:00:00 2001 From: Simon Welsh Date: Tue, 13 Mar 2012 09:18:12 +1300 Subject: [PATCH] BUGFIX BASE_PATH was trimming trailing whitespace in paths rather than trailing DIRECTORY_SEPARATORs. --- core/Core.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/Core.php b/core/Core.php index 23e703f1a..592bbb880 100644 --- a/core/Core.php +++ b/core/Core.php @@ -139,7 +139,7 @@ if(!isset($_SERVER['HTTP_HOST'])) { */ if(!defined('BASE_PATH')) { // Assuming that this file is sapphire/core/Core.php we can then determine the base path - define('BASE_PATH', rtrim(dirname(dirname(dirname(__FILE__)))), DIRECTORY_SEPARATOR); + define('BASE_PATH', rtrim(dirname(dirname(dirname(__FILE__))), DIRECTORY_SEPARATOR)); } if(!defined('BASE_URL')) { // Determine the base URL by comparing SCRIPT_NAME to SCRIPT_FILENAME and getting common elements