Issue #46 - Merged new, edit and clone into a single page. Moodle code checker was complaining about duplicated code and it was right!

This commit is contained in:
Daniel Thee Roperto
2016-09-26 22:14:03 +10:00
committed by Daniel Thee Roperto
parent 8791727ba4
commit 6a78557487
9 changed files with 44 additions and 135 deletions

View File

@@ -47,7 +47,7 @@ if ($viewbag['admin']) {
}
$admineditlink = html_writer::link(
new moodle_url('/auth/outage/edit.php', ['id' => $viewbag['outage']->id]),
new moodle_url('/auth/outage/edit.php', ['edit' => $viewbag['outage']->id]),
get_string('outageedit', 'auth_outage')
);
}

View File

@@ -29,7 +29,7 @@ use auth_outage\output\renderer;
defined('MOODLE_INTERNAL') || die();
$urlnew = new moodle_url('/auth/outage/new.php');
$urlnew = new moodle_url('/auth/outage/edit.php');
?>
<section id="section_planned_outages">