MDL-45282 core_user: fixed up some oddities in the bulk user messaging screen

This commit is contained in:
Andrew Davis 2014-04-26 21:16:29 +08:00
parent f8fa440649
commit f624f56999
5 changed files with 15 additions and 4 deletions

View file

@ -105,7 +105,13 @@ if ($data = data_submitted()) {
}
}
$strtitle = get_string('coursemessage');
if ($course->id == SITEID) {
$strtitle = get_string('sitemessage');
$PAGE->set_pagelayout('admin');
} else {
$strtitle = get_string('coursemessage');
$PAGE->set_pagelayout('incourse');
}
$link = null;
if (has_capability('moodle/course:viewparticipants', $coursecontext) ||