mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUGFIX Moved set_include_path() directive for including sapphire/thirdparty from sapphire/_config.php to Core class - needs to be loaded before other _config.php files are parsed, to enable e.g. usage of the Money class in a static context
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@77435 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
310a85cd9e
commit
a7e93c3099
@ -43,13 +43,6 @@ Director::addRules(1, array(
|
||||
*/
|
||||
Object::useCustomClass('Datetime','SSDatetime',true);
|
||||
|
||||
/**
|
||||
* Add thirdparty include paths
|
||||
*/
|
||||
$path = Director::baseFolder().'/sapphire/parsers/';
|
||||
set_include_path(str_replace('.' . PATH_SEPARATOR, '.' . PATH_SEPARATOR . $path . PATH_SEPARATOR, get_include_path()));
|
||||
set_include_path(get_include_path() . PATH_SEPARATOR . BASE_PATH . '/sapphire/thirdparty');
|
||||
|
||||
|
||||
/**
|
||||
* The root directory of TinyMCE
|
||||
|
@ -156,6 +156,13 @@ require_once('core/control/Director.php');
|
||||
require_once('filesystem/Filesystem.php');
|
||||
require_once("core/Session.php");
|
||||
|
||||
/**
|
||||
* Add thirdparty include paths
|
||||
*/
|
||||
$path = Director::baseFolder().'/sapphire/parsers/';
|
||||
set_include_path(str_replace('.' . PATH_SEPARATOR, '.' . PATH_SEPARATOR . $path . PATH_SEPARATOR, get_include_path()));
|
||||
set_include_path(get_include_path() . PATH_SEPARATOR . BASE_PATH . '/sapphire/thirdparty');
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// MANIFEST
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user