MDL-57638 block_rss_client: skip output of failed feeds

This commit is contained in:
Davo Smith 2017-01-19 16:58:20 +00:00
parent 5130953c8a
commit 83e5234536

View File

@ -173,6 +173,11 @@
global $CFG;
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);
if(isset($CFG->block_rss_client_timeout)){