mirror of
https://github.com/catalyst/moodle-auth_outage.git
synced 2026-05-16 21:41:31 +02:00
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:
committed by
Daniel Thee Roperto
parent
8791727ba4
commit
6a78557487
@@ -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')
|
||||
);
|
||||
}
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user