Permalink
Browse files

MDL-26500 blog: Rewrite pluginfile urls in RSS

  • Loading branch information...
danpoltawski committed Mar 30, 2012
1 parent 403c191 commit 54ba4bf583734f3062795a231402dec1f6359aae
Showing with 3 additions and 1 deletion.
  1. +3 −1 blog/rsslib.php
View
@@ -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;

0 comments on commit 54ba4bf

Please sign in to comment.