mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 12:32:08 +02:00
MDL-26500 blog: Rewrite pluginfile urls in RSS
This commit is contained in:
parent
20d1c739dd
commit
285665550d
@ -218,7 +218,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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user