Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

MDL-37467 Do not provide blog posts via RSS when blogging is disabled

  • Loading branch information...
commit fe7e411e7cebec62f20157cbcd19801bbba65ef7 1 parent 72a504d
@mudrd8mz mudrd8mz authored stronk7 committed
Showing with 5 additions and 0 deletions.
  1. +5 −0 blog/rsslib.php
5 blog/rsslib.php
@@ -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 fe7e411

Please sign in to comment.
Something went wrong with that request. Please try again.