Skip to content

Commit

Permalink
MDL-37467 Do not provide blog posts via RSS when blogging is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
mudrd8mz committed Jan 10, 2013
1 parent d63a406 commit a4611b9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions blog/rsslib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 '';
Expand Down

0 comments on commit a4611b9

Please sign in to comment.