Permalink
Browse files

MDL-26500 blog: Rewrite pluginfile urls in RSS

  • Loading branch information...
1 parent 15824fa commit 0fcd56e671c2ba85dea8440f53718f70b3e1071c @danpoltawski danpoltawski committed Mar 30, 2012
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 0fcd56e

Please sign in to comment.