MDL-26285 block_rss_client - do not disable with enablerssfeeds
authorDan Poltawski <dan.poltawski@luns.net.uk>
Wed, 6 Jul 2011 20:10:43 +0000 (21:10 +0100)
committerDan Poltawski <dan.poltawski@luns.net.uk>
Wed, 6 Jul 2011 20:10:43 +0000 (21:10 +0100)
This setting was used in 1.9 and below to control feed generation only, not
for RSS consumption.

blocks/rss_client/block_rss_client.php

index 21eb44f..11bec78 100644 (file)
             return $this->content;
         }
 
-        if (!$CFG->enablerssfeeds) {
-            $this->content->text = '';
-            if ($this->page->user_is_editing()) {
-                $this->content->text = get_string('disabledrssfeeds', 'block_rss_client');
-            }
-            return $this->content;
-        }
-
         // initalise block content object
         $this->content = new stdClass;
         $this->content->text   = '';