mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Bugfix: extensions set logger failed
This commit is contained in:
parent
a9e5f1c6f8
commit
c4acb26758
2 changed files with 2 additions and 5 deletions
|
|
@ -147,7 +147,6 @@ class Actions
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->oPlugins = new Plugins\Manager($this);
|
$this->oPlugins = new Plugins\Manager($this);
|
||||||
$this->oPlugins->SetLogger($this->oLogger);
|
|
||||||
$this->oPlugins->RunHook('filter.application-config', array($this->oConfig));
|
$this->oPlugins->RunHook('filter.application-config', array($this->oConfig));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,10 +6,7 @@ class Manager
|
||||||
{
|
{
|
||||||
use \MailSo\Log\Inherit;
|
use \MailSo\Log\Inherit;
|
||||||
|
|
||||||
/**
|
private \RainLoop\Actions $oActions;
|
||||||
* @var \RainLoop\Actions
|
|
||||||
*/
|
|
||||||
private $oActions;
|
|
||||||
|
|
||||||
private array
|
private array
|
||||||
$aHooks = array(),
|
$aHooks = array(),
|
||||||
|
|
@ -26,6 +23,7 @@ class Manager
|
||||||
public function __construct(\RainLoop\Actions $oActions)
|
public function __construct(\RainLoop\Actions $oActions)
|
||||||
{
|
{
|
||||||
$this->oActions = $oActions;
|
$this->oActions = $oActions;
|
||||||
|
$this->SetLogger($oActions->Logger());
|
||||||
|
|
||||||
$oConfig = $oActions->Config();
|
$oConfig = $oActions->Config();
|
||||||
$this->bIsEnabled = (bool) $oConfig->Get('plugins', 'enable', false);
|
$this->bIsEnabled = (bool) $oConfig->Get('plugins', 'enable', false);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue