mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #240 from simonwelsh/base-path-with-space
BUGFIX BASE_PATH was trimming trailing whitespace in paths rather than the DIRECTORY_SEPARATOR
This commit is contained in:
commit
98604fab9c
@ -139,7 +139,7 @@ if(!isset($_SERVER['HTTP_HOST'])) {
|
|||||||
*/
|
*/
|
||||||
if(!defined('BASE_PATH')) {
|
if(!defined('BASE_PATH')) {
|
||||||
// Assuming that this file is sapphire/core/Core.php we can then determine the 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')) {
|
if(!defined('BASE_URL')) {
|
||||||
// Determine the base URL by comparing SCRIPT_NAME to SCRIPT_FILENAME and getting common elements
|
// Determine the base URL by comparing SCRIPT_NAME to SCRIPT_FILENAME and getting common elements
|
||||||
|
Loading…
Reference in New Issue
Block a user