mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +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 {
|
class SeedDMS_ExtBase {
|
||||||
var $settings;
|
var $settings;
|
||||||
var $dms;
|
var $dms;
|
||||||
|
var $logger;
|
||||||
|
|
||||||
public function __construct($settings, $dms) {
|
public function __construct($settings, $dms, $logger) {
|
||||||
$this->settings = $settings;
|
$this->settings = $settings;
|
||||||
$this->dms = $dms;
|
$this->dms = $dms;
|
||||||
|
$this->logger = $logger;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,7 +43,7 @@ foreach($extMgr->getExtensionConfiguration() as $extname=>$extconf) {
|
||||||
$classfile = $settings->_rootDir."/ext/".$extname."/".$extconf['class']['file'];
|
$classfile = $settings->_rootDir."/ext/".$extname."/".$extconf['class']['file'];
|
||||||
if(file_exists($classfile)) {
|
if(file_exists($classfile)) {
|
||||||
include($classfile);
|
include($classfile);
|
||||||
$obj = new $extconf['class']['name']($settings, null);
|
$obj = new $extconf['class']['name']($settings, null, $logger);
|
||||||
if(method_exists($obj, 'init'))
|
if(method_exists($obj, 'init'))
|
||||||
$obj->init();
|
$obj->init();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user