MDL-26500 blog: Rewrite pluginfile urls in RSS
This commit is contained in:
+3
-1
@@ -164,7 +164,9 @@ function blog_rss_get_feed($context, $args) {
|
||||
$item->title = $blog_entry->subject;
|
||||
$item->pubdate = $blog_entry->lastmodified;
|
||||
$item->link = $CFG->wwwroot.'/blog/index.php?entryid='.$blog_entry->id;
|
||||
$item->description = format_text($blog_entry->summary, $blog_entry->format);
|
||||
$summary = file_rewrite_pluginfile_urls($blog_entry->summary, 'pluginfile.php',
|
||||
$sitecontext->id, 'blog', 'post', $blog_entry->id);
|
||||
$item->description = format_text($summary, $blog_entry->format);
|
||||
if ( !empty($CFG->usetags) && ($blogtags = tag_get_tags_array('post', $blog_entry->id)) ) {
|
||||
if ($blogtags) {
|
||||
$item->tags = $blogtags;
|
||||
|
||||
Reference in New Issue
Block a user