Seeing ####TRUSTTEXT#### in RSS feeds MDL-7147 - fixed RSS discussion feed type too
This commit is contained in:
@@ -185,6 +185,10 @@
|
||||
$articlesleft = $forum->rssarticles;
|
||||
$item = NULL;
|
||||
$user = NULL;
|
||||
|
||||
$formatoptions = new object;
|
||||
$formatoptions->trusttext = true;
|
||||
|
||||
foreach ($recs as $rec) {
|
||||
unset($item);
|
||||
unset($user);
|
||||
@@ -194,7 +198,7 @@
|
||||
$item->author = fullname($user);
|
||||
$item->pubdate = $rec->postcreated;
|
||||
$item->link = $CFG->wwwroot."/mod/forum/discuss.php?d=".$rec->discussionid;
|
||||
$item->description = format_text($rec->postmessage,$rec->postformat,NULL,$forum->course);
|
||||
$item->description = format_text($rec->postmessage,$rec->postformat,$formatoptions,$forum->course);
|
||||
$items[] = $item;
|
||||
$articlesleft--;
|
||||
if ($articlesleft < 1) {
|
||||
|
||||
Reference in New Issue
Block a user