mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-06-18 02:59:27 +00:00
pass extension mgr to init() of extension
This commit is contained in:
parent
fa66cb8332
commit
3aca89e174
|
@ -48,7 +48,7 @@ foreach($extMgr->getExtensionConfiguration() as $extname=>$extconf) {
|
||||||
include($classfile);
|
include($classfile);
|
||||||
$obj = new $extconf['class']['name']($settings, null, $logger);
|
$obj = new $extconf['class']['name']($settings, null, $logger);
|
||||||
if(method_exists($obj, 'init'))
|
if(method_exists($obj, 'init'))
|
||||||
$obj->init();
|
$obj->init($extMgr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(isset($extconf['language']['file'])) {
|
if(isset($extconf['language']['file'])) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user