Permalink
Browse files

Merge branch 'MDL-37467-blogs_24' of git://github.com/mudrd8mz/moodle…

… into MOODLE_24_STABLE
2 parents 5be0092 + a4611b9 commit 43bfcff941f6c25f014d5210482842538cef349a @stronk7 stronk7 committed Jan 10, 2013
Showing with 5 additions and 0 deletions.
  1. +5 −0 blog/rsslib.php
View
@@ -158,6 +158,11 @@ function blog_rss_get_params($filters) {
function blog_rss_get_feed($context, $args) {
global $CFG, $SITE, $DB;
+ if (empty($CFG->enableblogs)) {
+ debugging('Blogging disabled on this site, RSS feeds are not available');
+ return null;
+ }
+
if (empty($CFG->enablerssfeeds)) {
debugging('Sorry, RSS feeds are disabled on this site');
return '';

0 comments on commit 43bfcff

Please sign in to comment.