R
ragtek
Guest
Why do you overwrite the includepath from php?
I had big problems including some extern libraries into my xenforo application, until i saw, that the xenforo autoloader resets all the settings
Autoloader.php @ line 70
Wouldn't it be better to have:
I had big problems including some extern libraries into my xenforo application, until i saw, that the xenforo autoloader resets all the settings
Autoloader.php @ line 70
PHP:
set_include_path($this->_rootDir . PATH_SEPARATOR . '.');
PHP:
$incPaths = array();
$incPaths[] = $this->_rootDir . PATH_SEPARATOR . '.';
$incPaths[] = get_include_path();
set_include_path(implode($incPaths, PATH_SEPARATOR));