Skip to content

Commit

Permalink
MDL-37658 logging: fixed bug in legacy logging
Browse files Browse the repository at this point in the history
  • Loading branch information
marinaglancy authored and skodak committed Feb 28, 2014
1 parent 7eaca5a commit 53dd210
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions admin/tool/log/classes/log/manager.php
Expand Up @@ -159,8 +159,8 @@ public function cron() {
*/
public function legacy_add_to_log($courseid, $module, $action, $url='', $info='', $cm=0, $user=0) {
$this->init();
if (isset($this->stores['legacy'])) {
$this->stores['legacy']->legacy_add_to_log($courseid, $module, $action, $url, $info, $cm, $user);
if (isset($this->stores['logstore_legacy'])) {
$this->stores['logstore_legacy']->legacy_add_to_log($courseid, $module, $action, $url, $info, $cm, $user);
}
}
}
3 changes: 1 addition & 2 deletions admin/tool/log/store/legacy/classes/log/store.php
Expand Up @@ -104,8 +104,7 @@ public function legacy_add_to_log($courseid, $module, $action, $url, $info, $cm,
// This is for a good reason: it is the most frequently used DB update function,
// so it has been optimised for speed.
global $DB, $CFG, $USER;

if ($this->legacy_logging_enabled()) {
if (!$this->legacy_logging_enabled()) {
return;
}

Expand Down

0 comments on commit 53dd210

Please sign in to comment.