From 741f10474944a1a8d64a81e90e5ffa667665e9bd Mon Sep 17 00:00:00 2001 From: Simon Welsh Date: Sat, 11 Feb 2012 14:33:55 +1300 Subject: [PATCH] FEATURE Allow setting of constant CUSTOM_INCLUDE_PATH in _ss_enivronment.php which is prepended to the include path --- core/Core.php | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/core/Core.php b/core/Core.php index b77a510bd..234d3bad8 100644 --- a/core/Core.php +++ b/core/Core.php @@ -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.