From: toyomoyo Date: Thu, 22 Nov 2007 01:17:03 +0000 (+0000) Subject: turn this block off when $CFG->messaging is off X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=094d92a4acd0a1ecc25d73917fda057d321973c9;p=moodle.git turn this block off when $CFG->messaging is off --- diff --git a/blocks/messages/block_messages.php b/blocks/messages/block_messages.php index 3d21185415..93589364e9 100644 --- a/blocks/messages/block_messages.php +++ b/blocks/messages/block_messages.php @@ -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; }