From 0bb366de1f4c85787d149f737d1dd6402a292c0b Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Mon, 8 Dec 2014 14:51:26 +0100 Subject: [PATCH] add rootDir to include path --- inc/inc.Settings.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/inc/inc.Settings.php b/inc/inc.Settings.php index fe0f5872e..46e7a7738 100644 --- a/inc/inc.Settings.php +++ b/inc/inc.Settings.php @@ -91,4 +91,9 @@ if (get_magic_quotes_gpc()) { } unset($process); } + +/* Add root Dir. Needed because the view classes are included + * relative to it. + */ +ini_set('include_path', $settings->_rootDir. PATH_SEPARATOR .ini_get('include_path')); ?>