Permalink
Browse files

BUGFIX BASE_PATH was trimming trailing whitespace in paths rather tha…

…n trailing DIRECTORY_SEPARATORs.
  • Loading branch information...
1 parent 2c42ffd commit 2f7fa90fc43730f208cc01b32035bffdb4531e84 @simonwelsh simonwelsh committed Mar 12, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 core/Core.php
View
2 core/Core.php
@@ -139,7 +139,7 @@ function array_fill_keys($keys,$value) {
*/
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

0 comments on commit 2f7fa90

Please sign in to comment.