Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plugins bot
moodle-plugins-snapshots
Commits
83e52345
Commit
83e52345
authored
Jan 19, 2017
by
Davo Smith
Browse files
MDL-57638 block_rss_client: skip output of failed feeds
parent
5130953c
Changes
1
Hide whitespace changes
Inline
Side-by-side
blocks/rss_client/block_rss_client.php
View file @
83e52345
...
...
@@ -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
)){
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment