MDL-59496 registration: display unregistered warning consistently

This commit is contained in:
Marina Glancy
2017-07-31 14:29:58 +08:00
parent d509f80c48
commit 505bbe7cd6
8 changed files with 42 additions and 17 deletions
+6
View File
@@ -38,6 +38,12 @@ if ($data = data_submitted() and confirm_sesskey() and isset($data->action) and
// to modify them
echo $OUTPUT->header($focus);
// Display a warning if site is not registered.
if (empty($query)) {
$adminrenderer = $PAGE->get_renderer('core', 'admin');
echo $adminrenderer->warn_if_not_registered();
}
echo $OUTPUT->heading(get_string('administrationsite'));
if ($errormsg !== '') {