mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-11 20:21:16 +00:00
pass configuration to init() of extension
This commit is contained in:
parent
dcfefa5801
commit
560827ffdd
|
@ -45,7 +45,7 @@ foreach($extMgr->getExtensionConfiguration() 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'])) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user