Merge branch 'MDL-86069-500' of https://github.com/paulholden/moodle into MOODLE_500_STABLE
This commit is contained in:
@@ -82,7 +82,7 @@ class blog_edit_external_form extends moodleform {
|
||||
$rssfile = $rss->registry->create('File', array($data['url']));
|
||||
$filetest = $rss->registry->create('Locator', array($rssfile));
|
||||
|
||||
if (!$filetest->is_feed($rssfile)) {
|
||||
if (empty($rssfile->success) || !$filetest->is_feed($rssfile)) {
|
||||
$errors['url'] = get_string('feedisinvalid', 'blog');
|
||||
} else {
|
||||
$rss->set_feed_url($data['url']);
|
||||
|
||||
+1
-1
@@ -153,7 +153,7 @@ function blog_sync_external_entries($externalblog) {
|
||||
$rssfile = $rss->registry->create('File', array($externalblog->url));
|
||||
$filetest = $rss->registry->create('Locator', array($rssfile));
|
||||
|
||||
if (!$filetest->is_feed($rssfile)) {
|
||||
if (empty($rssfile->success) || !$filetest->is_feed($rssfile)) {
|
||||
$externalblog->failedlastsync = 1;
|
||||
$DB->update_record('blog_external', $externalblog);
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user