pass extension config to init() of extension

This commit is contained in:
Uwe Steinmann 2018-04-04 21:48:25 +02:00
parent 2b62fbcc1b
commit ed48285da5

View File

@ -37,7 +37,7 @@ foreach($EXT_CONF as $extname=>$extconf) {
include($classfile);
$obj = new $extconf['class']['name'];
if(method_exists($obj, 'init'))
$obj->init();
$obj->init(isset($settings->_extensions[$extname]) ? $settings->_extensions[$extname] : null);
}
if(isset($extconf['language']['file'])) {
$langfile = $settings->_rootDir."/ext/".$extname."/".$extconf['language']['file'];