mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #189 from simonwelsh/custom-include-path
FEATURE Allow setting of constant CUSTOM_INCLUDE_PATH in _ss_enivronment...
This commit is contained in:
commit
81484d5bfd
@ -207,10 +207,20 @@ if(function_exists('mb_http_output')) {
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// INCLUDES
|
||||
|
||||
set_include_path(BASE_PATH . '/sapphire' . PATH_SEPARATOR
|
||||
. BASE_PATH . '/sapphire/parsers' . PATH_SEPARATOR
|
||||
. BASE_PATH . '/sapphire/thirdparty' . PATH_SEPARATOR
|
||||
. get_include_path());
|
||||
if(defined('CUSTOM_INCLUDE_PATH')) {
|
||||
$includePath = CUSTOM_INCLUDE_PATH . PATH_SEPARATOR
|
||||
. BASE_PATH . '/sapphire' . PATH_SEPARATOR
|
||||
. BASE_PATH . '/sapphire/parsers' . PATH_SEPARATOR
|
||||
. BASE_PATH . '/sapphire/thirdparty' . PATH_SEPARATOR
|
||||
. get_include_path();
|
||||
} else {
|
||||
$includePath = BASE_PATH . '/sapphire' . PATH_SEPARATOR
|
||||
. BASE_PATH . '/sapphire/parsers' . PATH_SEPARATOR
|
||||
. BASE_PATH . '/sapphire/thirdparty' . PATH_SEPARATOR
|
||||
. get_include_path();
|
||||
}
|
||||
|
||||
set_include_path($includePath);
|
||||
|
||||
// Include the files needed the initial manifest building, as well as any files
|
||||
// that are needed for the boostrap process on every request.
|
||||
|
Loading…
Reference in New Issue
Block a user