Permalink
Browse files

Fix logger init

  • Loading branch information...
1 parent 2a77d7b commit baf6bd09f71fc59f8314d3e181c88e9f81b460a7 @cdujeu cdujeu committed Jun 6, 2016
Showing with 2 additions and 1 deletion.
  1. +2 −1 core/src/plugins/core.log/class.AJXP_Logger.php
@@ -21,6 +21,7 @@
namespace Pydio\Log\Core;
use Pydio\Access\Core\Model\UserSelection;
+use Pydio\Core\Model\Context;
use Pydio\Core\Model\ContextInterface;
use Pydio\Core\Services\AuthService;
use Pydio\Core\Services\ConfService;
@@ -319,7 +320,7 @@ public static function getInstance()
{
if (!isset(self::$loggerInstance)) {
$p = PluginsService::findPlugin("core", "log");
- if(is_object($p)) $p->init(array());
+ if(is_object($p)) $p->init(Context::fromGlobalServices(), array());
}
return self::$loggerInstance;
}

0 comments on commit baf6bd0

Please sign in to comment.