Issue #22 - Adding parameter to hide warning bar to be used when baking page.

This commit is contained in:
Daniel Thee Roperto
2016-11-08 14:03:24 +11:00
parent deb6d87e72
commit e6921d6649
2 changed files with 17 additions and 0 deletions

View File

@@ -45,6 +45,18 @@ if ($viewbag['admin']) {
get_string('info'.$title, 'auth_outage')
);
}
$adminlinks[] = html_writer::link(
new moodle_url(
'/auth/outage/info.php',
[
'id' => $viewbag['outage']->id,
'auth_outage_preview' => $viewbag['outage']->id,
'auth_outage_delta' => 0,
'auth_outage_hide_warning' => 1,
]
),
get_string('infohidewarning', 'auth_outage')
);
$admineditlink = html_writer::link(
new moodle_url('/auth/outage/edit.php', ['edit' => $viewbag['outage']->id]),