Skip to content
Snippets Groups Projects
Unverified Commit 5f57b3de authored by Jan Dageförde's avatar Jan Dageförde
Browse files

libbase: remove get_interaction_link as the URL is now static

parent e046a172
Branches
Tags
No related merge requests found
......@@ -147,7 +147,8 @@ class email extends libbase {
$replacements [] = $user->lastname;
// Replace link to interaction page.
$url = $CFG->wwwroot . '/' . $this->get_interaction_link($stepid)->out();
$interactionlink = new \moodle_url('admin/tool/cleanupcourses/view.php');
$url = $CFG->wwwroot . '/' . $interactionlink->out();
$patterns [] = '##link##';
$replacements [] = $url;
......
......@@ -105,15 +105,6 @@ abstract class libbase {
public function extend_add_instance_form_definition_after_data($mform, $settings) {
}
/**
* Generates the link to the interaction table of the respective step
* @param int $stepid id of the step
* @return \moodle_url
*/
public function get_interaction_link($stepid) {
return new \moodle_url('admin/tool/cleanupcourses/view.php', array('stepid' => $stepid));
}
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment