Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 52f9e3ee5646e777cc09149e3aea55a3255b2ca4 1 parent dc21606
@mudrd8mz mudrd8mz authored stronk7 committed
Showing with 5 additions and 0 deletions.
  1. +5 −0 blog/rsslib.php
View
5 blog/rsslib.php
@@ -104,6 +104,11 @@ function blog_rss_get_params($filters) {
function blog_rss_get_feed($context, $args) {
global $CFG, $SITE, $DB;
+ if (empty($CFG->bloglevel)) {
+ 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 '';
Please sign in to comment.
Something went wrong with that request. Please try again.