mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 01:16:44 +02:00
MDL-45282 core_user: fixed up some oddities in the bulk user messaging screen
This commit is contained in:
parent
f8fa440649
commit
f624f56999
5 changed files with 15 additions and 4 deletions
|
@ -9,8 +9,8 @@
|
|||
<td align="right"><b>
|
||||
<?php print_string("messagebody"); ?>:
|
||||
</b></td>
|
||||
<td align="left" rowspan="2">
|
||||
<?php print_textarea(true, 25, 65, 630, 400, "messagebody", $messagebody); ?>
|
||||
<td align="left">
|
||||
<?php print_textarea(true, 15, 65, 1, 1, "messagebody", $messagebody); ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
|
|
@ -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) ||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue