turn this block off when CFG->messaging is off
This commit is contained in:
@@ -9,6 +9,10 @@ class block_messages extends block_base {
|
||||
function get_content() {
|
||||
global $USER, $CFG;
|
||||
|
||||
if (!$CFG->messaging) {
|
||||
return '';
|
||||
}
|
||||
|
||||
if ($this->content !== NULL) {
|
||||
return $this->content;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user