mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 07:22:11 +00:00
pass logger to contructor of SeedDMS_ExtBase
This commit is contained in:
parent
5210d756e9
commit
15a4d3195b
|
@ -31,9 +31,11 @@
|
|||
class SeedDMS_ExtBase {
|
||||
var $settings;
|
||||
var $dms;
|
||||
var $logger;
|
||||
|
||||
public function __construct($settings, $dms) {
|
||||
public function __construct($settings, $dms, $logger) {
|
||||
$this->settings = $settings;
|
||||
$this->dms = $dms;
|
||||
$this->logger = $logger;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -43,7 +43,7 @@ foreach($extMgr->getExtensionConfiguration() as $extname=>$extconf) {
|
|||
$classfile = $settings->_rootDir."/ext/".$extname."/".$extconf['class']['file'];
|
||||
if(file_exists($classfile)) {
|
||||
include($classfile);
|
||||
$obj = new $extconf['class']['name']($settings, null);
|
||||
$obj = new $extconf['class']['name']($settings, null, $logger);
|
||||
if(method_exists($obj, 'init'))
|
||||
$obj->init();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user