MDL-53700 competency: Use URL resolver in events

This commit is contained in:
Frederic Massart
2016-04-18 11:06:00 +08:00
parent 07fc0ec380
commit 899f46d6de
37 changed files with 167 additions and 105 deletions
@@ -84,8 +84,7 @@ class competency_framework_created extends base {
* @return \moodle_url
*/
public function get_url() {
return new \moodle_url('/admin/tool/lp/editcompetencyframework.php', array(
'id' => $this->objectid, 'pagecontextid' => $this->contextid));
return \core_competency\url::framework($this->objectid, $this->contextid);
}
/**