mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-57638 block_rss_client: skip output of failed feeds
This commit is contained in:
parent
5130953c8a
commit
83e5234536
@ -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)){
|
||||
|
Loading…
x
Reference in New Issue
Block a user