mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUG Inspect current directory for include_path
This fixes problems where require/include calls rely on the relative file path, e.g. in i18n.php. Followup from https://github.com/silverstripe/sapphire/pull/904
This commit is contained in:
parent
f861ff9dfa
commit
a5fd3cf985
@ -186,13 +186,13 @@ define('ASSETS_PATH', BASE_PATH . '/' . ASSETS_DIR);
|
|||||||
// INCLUDES
|
// INCLUDES
|
||||||
|
|
||||||
if(defined('CUSTOM_INCLUDE_PATH')) {
|
if(defined('CUSTOM_INCLUDE_PATH')) {
|
||||||
$includePath = CUSTOM_INCLUDE_PATH . PATH_SEPARATOR
|
$includePath = '.' . PATH_SEPARATOR . CUSTOM_INCLUDE_PATH . PATH_SEPARATOR
|
||||||
. FRAMEWORK_PATH . PATH_SEPARATOR
|
. FRAMEWORK_PATH . PATH_SEPARATOR
|
||||||
. FRAMEWORK_PATH . '/parsers' . PATH_SEPARATOR
|
. FRAMEWORK_PATH . '/parsers' . PATH_SEPARATOR
|
||||||
. THIRDPARTY_PATH . PATH_SEPARATOR
|
. THIRDPARTY_PATH . PATH_SEPARATOR
|
||||||
. get_include_path();
|
. get_include_path();
|
||||||
} else {
|
} else {
|
||||||
$includePath = FRAMEWORK_PATH . PATH_SEPARATOR
|
$includePath = '.' . PATH_SEPARATOR . FRAMEWORK_PATH . PATH_SEPARATOR
|
||||||
. FRAMEWORK_PATH . '/parsers' . PATH_SEPARATOR
|
. FRAMEWORK_PATH . '/parsers' . PATH_SEPARATOR
|
||||||
. THIRDPARTY_PATH . PATH_SEPARATOR
|
. THIRDPARTY_PATH . PATH_SEPARATOR
|
||||||
. get_include_path();
|
. get_include_path();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user