mirror of
https://github.com/moodle/moodle.git
synced 2025-03-20 07:30:01 +01:00
Merge branch 'MDL-50958-master' of git://github.com/lameze/moodle
This commit is contained in:
commit
1e5b562ac9
@ -31,7 +31,9 @@ class block_messages extends block_base {
|
||||
global $USER, $CFG, $DB, $OUTPUT;
|
||||
|
||||
if (!$CFG->messaging) {
|
||||
$this->content = new stdClass;
|
||||
$this->content->text = '';
|
||||
$this->content->footer = '';
|
||||
if ($this->page->user_is_editing()) {
|
||||
$this->content->text = get_string('disabled', 'message');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user