Thomas Bruederli
2013-08-16 debd0f85155903b4983b6f6e5f14721e282b00fc
Let the framework adjust the include_path if necessary
1 files modified
7 ■■■■■ changed files
program/lib/Roundcube/bootstrap.php 7 ●●●●● patch | view | raw | blame | history
program/lib/Roundcube/bootstrap.php
@@ -84,6 +84,13 @@
    @mb_regex_encoding(RCUBE_CHARSET);
}
// make sure the lib directory is in the include_path
$rcube_include_path = realpath(RCUBE_LIB_DIR . '..');
$sep = PATH_SEPARATOR;
if (!preg_match("!(^|$sep)$rcube_include_path($sep|\$)!", ini_get('include_path'))) {
    set_include_path(ini_get('include_path') . PATH_SEPARATOR . $rcube_include_path);
}
// Register autoloader
spl_autoload_register('rcube_autoload');