Permalink
Browse files

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

  • Loading branch information...
1 parent d63a406 commit a4611b9d02105d0f33e3673533bf7b7223590a37 @mudrd8mz mudrd8mz 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 a4611b9

Please sign in to comment.