MDL-40046 events: Use correct variable for page instance id

This commit is contained in:
Ankit Agarwal
2013-10-09 11:20:32 +08:00
parent f18f96f767
commit 136f4c47b3
@@ -76,7 +76,7 @@ class course_module_viewed extends \core\event\content_viewed {
* @return array of parameters to be passed to legacy add_to_log() function.
*/
protected function get_legacy_logdata() {
return array($this->courseid, 'page', 'view', 'view.php?id=' . $this->context->instanceid, $this->other['instanceid'],
return array($this->courseid, 'page', 'view', 'view.php?id=' . $this->context->instanceid, $this->objectid,
$this->context->instanceid);
}
}