Skip to content

Commit

Permalink
Merged fix for notice from stable
Browse files Browse the repository at this point in the history
  • Loading branch information
moodler committed Oct 21, 2006
1 parent 2176adf commit 318f210
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions mod/forum/rsslib.php
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,10 @@ function forum_rss_feed_posts($forum, $newsince=0) {
$articlesleft = $forum->rssarticles;
$item = NULL;
$user = NULL;

$formatoptions = new object;
$formatoptions->trusttext = true;

foreach ($recs as $rec) {
unset($item);
unset($user);
Expand All @@ -256,10 +260,10 @@ function forum_rss_feed_posts($forum, $newsince=0) {
$item->author = fullname($user);
$item->pubdate = $rec->postcreated;
$item->link = $CFG->wwwroot."/mod/forum/discuss.php?d=".$rec->discussionid."&parent=".$rec->postid;
$item->description = format_text($rec->postmessage,$rec->postformat,NULL,$forum->course);
$item->description = format_text($rec->postmessage,$rec->postformat,$formatoptions,$forum->course);


$post_file_area_name = str_replace('//', '/', "$forum->course/$CFG->moddata/$rec->course/forum/$forum->id/$rec->postid");
$post_file_area_name = str_replace('//', '/', "$forum->course/$CFG->moddata/forum/$forum->id/$rec->postid");
$post_files = get_directory_list("$CFG->dataroot/$post_file_area_name");

if (!empty($post_files)) {
Expand Down

0 comments on commit 318f210

Please sign in to comment.