Seeing ####TRUSTTEXT#### in RSS feeds MDL-7147 - fixed RSS feeds in glossary; merged from MOODLE_17_STABLE

This commit is contained in:
skodak 2006-10-21 21:15:26 +00:00
parent ec41cb3c52
commit f8b922413a

View File

@ -170,6 +170,10 @@
$articlesleft = $glossary->rssarticles;
$item = NULL;
$user = NULL;
$formatoptions = new object;
$formatoptions->trusttext = true;
foreach ($recs as $rec) {
unset($item);
unset($user);
@ -179,7 +183,7 @@
$item->author = fullname($user);
$item->pubdate = $rec->entrytimecreated;
$item->link = $CFG->wwwroot."/mod/glossary/showentry.php?courseid=".$glossary->course."&eid=".$rec->entryid;
$item->description = format_text($rec->entrydefinition,$rec->entryformat,NULL,$glossary->course);
$item->description = format_text($rec->entrydefinition,$rec->entryformat,$formatoptions,$glossary->course);
$items[] = $item;
$articlesleft--;
if ($articlesleft < 1) {
@ -228,6 +232,10 @@
$articlesleft = $glossary->rssarticles;
$item = NULL;
$user = NULL;
$formatoptions = new object;
$formatoptions->trusttext = true;
foreach ($recs as $rec) {
unset($item);
unset($user);
@ -237,7 +245,7 @@
//$item->author = fullname($user);
$item->pubdate = $rec->entrytimecreated;
$item->link = $CFG->wwwroot."/mod/glossary/showentry.php?courseid=".$glossary->course."&eid=".$rec->entryid;
$item->description = format_text($rec->entrydefinition,$rec->entryformat,NULL,$glossary->course);
$item->description = format_text($rec->entrydefinition,$rec->entryformat,$formatoptions,$glossary->course);
$items[] = $item;
$articlesleft--;
if ($articlesleft < 1) {