Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Missing log when opening a file via the Editor (FileMimeSender)
Browse files Browse the repository at this point in the history
Fix #341 : force init core.log plugin if self::$loggerInstance is not yet defined.
  • Loading branch information
cdujeu committed Dec 14, 2013
1 parent 9f3eaf8 commit 2084d57
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/src/plugins/core.log/class.AJXP_Logger.php
Expand Up @@ -287,6 +287,10 @@ public static function arrayToString($params)
*/
public static function getInstance()
{
if(!isset(self::$loggerInstance)){
$p = AJXP_PluginsService::findPlugin("core", "log");
$p->init(array());
}
return self::$loggerInstance;
}

Expand Down
1 change: 1 addition & 0 deletions core/src/plugins/editor.browser/class.FileMimeSender.php
Expand Up @@ -107,6 +107,7 @@ public function switchAction($action, $httpVars, $filesVars)

$node = new AJXP_Node($destStreamURL.$file);
AJXP_Controller::applyHook("node.read", array($node));
$this->logInfo('Download', 'Read content of '.$node->getUrl());

}
}
Expand Down

0 comments on commit 2084d57

Please sign in to comment.