Skip to content

Commit

Permalink
Removed obsolete legacy event data
Browse files Browse the repository at this point in the history
  • Loading branch information
ndunand committed Nov 7, 2023
1 parent 4272ccc commit 1c03662
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 23 deletions.
13 changes: 0 additions & 13 deletions classes/event/choice_updated.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,18 +84,5 @@ public function get_url() {
return new \moodle_url('/mod/choicegroup/view.php', array('id' => $this->contextinstanceid));
}

/**
* Return the legacy event log data.
*
* @return array|null
*/
protected function get_legacy_logdata() {
// The legacy log table expects a relative path to /mod/choicegroup/.
$logurl = substr($this->get_url()->out_as_local_url(), strlen('/mod/choicegroup/'));

return array($this->courseid, 'choicegroup', 'choice updated', $logurl, $this->objectid, $this->contextinstanceid);
}


}

10 changes: 0 additions & 10 deletions classes/event/report_viewed.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,5 @@ public function get_url() {
return new \moodle_url('/mod/choicegroup/view.php', array('id' => $this->contextinstanceid));
}

/**
* Return the legacy event log data.
*
* @return array|null
*/
protected function get_legacy_logdata() {
return array($this->courseid, 'choicegroup', 'view group choice report', 'view.php?id=' . $this->contextinstanceid,
$this->objectid, $this->contextinstanceid);
}

}

0 comments on commit 1c03662

Please sign in to comment.