Standardising the printing of content and summaries to use format_text()

This commit is contained in:
moodler 2004-08-09 14:49:16 +00:00
parent 7dd826818e
commit 43cbfc1999
5 changed files with 17 additions and 13 deletions

View file

@ -72,12 +72,12 @@
if (!$resource->visible) { // Show dimmed if the mod is hidden
$table->data[] = array ($printsection,
"<a class=\"dimmed\" $extra href=\"view.php?id=$resource->coursemodule\">$resource->name</a>",
text_to_html($resource->summary) );
format_text($resource->summary) );
} else { //Show normal if the mod is visible
$table->data[] = array ($printsection,
"<a $extra href=\"view.php?id=$resource->coursemodule\">$resource->name</a>",
text_to_html($resource->summary) );
format_text($resource->summary) );
}
}