Commit 83e52345 authored by Davo Smith's avatar Davo Smith
Browse files

MDL-57638 block_rss_client: skip output of failed feeds

parent 5130953c
...@@ -173,6 +173,11 @@ ...@@ -173,6 +173,11 @@
global $CFG; global $CFG;
require_once($CFG->libdir.'/simplepie/moodle_simplepie.php'); require_once($CFG->libdir.'/simplepie/moodle_simplepie.php');
if ($feedrecord->skipuntil) {
// Last attempt to gather this feed via cron failed - do not try to fetch it now.
return null;
}
$simplepiefeed = new moodle_simplepie($feedrecord->url); $simplepiefeed = new moodle_simplepie($feedrecord->url);
if(isset($CFG->block_rss_client_timeout)){ if(isset($CFG->block_rss_client_timeout)){
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment