mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-11-10 09:02:45 +08: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->SetLogger($this->oLogger);
|
||||
$this->oPlugins->RunHook('filter.application-config', array($this->oConfig));
|
||||
}
|
||||
|
||||
|
|
|
@ -6,10 +6,7 @@ class Manager
|
|||
{
|
||||
use \MailSo\Log\Inherit;
|
||||
|
||||
/**
|
||||
* @var \RainLoop\Actions
|
||||
*/
|
||||
private $oActions;
|
||||
private \RainLoop\Actions $oActions;
|
||||
|
||||
private array
|
||||
$aHooks = array(),
|
||||
|
@ -26,6 +23,7 @@ class Manager
|
|||
public function __construct(\RainLoop\Actions $oActions)
|
||||
{
|
||||
$this->oActions = $oActions;
|
||||
$this->SetLogger($oActions->Logger());
|
||||
|
||||
$oConfig = $oActions->Config();
|
||||
$this->bIsEnabled = (bool) $oConfig->Get('plugins', 'enable', false);
|
||||
|
|
Loading…
Reference in a new issue