mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
Changed two notification to output correctly
This commit is contained in:
parent
c92d6f417c
commit
9ce8411317
1 changed files with 2 additions and 2 deletions
|
@ -61,7 +61,7 @@ $user = $DB->get_record('user', array('id' => $userid));
|
||||||
if ($user->deleted) {
|
if ($user->deleted) {
|
||||||
$PAGE->set_context(context_system::instance());
|
$PAGE->set_context(context_system::instance());
|
||||||
echo $OUTPUT->header();
|
echo $OUTPUT->header();
|
||||||
echo $OUTPUT->heading(get_string('userdeleted'));
|
echo $OUTPUT->notification(get_string('userdeleted'));
|
||||||
echo $OUTPUT->footer();
|
echo $OUTPUT->footer();
|
||||||
die;
|
die;
|
||||||
}
|
}
|
||||||
|
@ -82,7 +82,7 @@ if (!$currentuser &&
|
||||||
$PAGE->set_url('/user/profile.php', array('id'=>$userid));
|
$PAGE->set_url('/user/profile.php', array('id'=>$userid));
|
||||||
$PAGE->navbar->add($struser);
|
$PAGE->navbar->add($struser);
|
||||||
echo $OUTPUT->header();
|
echo $OUTPUT->header();
|
||||||
echo $OUTPUT->heading(get_string('usernotavailable', 'error'));
|
echo $OUTPUT->notification(get_string('usernotavailable', 'error'));
|
||||||
echo $OUTPUT->footer();
|
echo $OUTPUT->footer();
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue