Skip to content
Browse files

[MDL-23140]

Adding some format_string and text
  • Loading branch information...
1 parent 110f4c9 commit 0269a792004e1d2d04c2f2deb3fd40ad4d00c9a0 Jordi Piguillem committed Sep 10, 2010
Showing with 4 additions and 4 deletions.
  1. +4 −4 mod/wiki/renderer.php
View
8 mod/wiki/renderer.php
@@ -60,10 +60,10 @@ public function search_result($records) {
$totalcount = count($records);
$html = $this->output->heading("$strsearchresults $totalcount");
foreach ($records as $page) {
- $table->head = array('title' => $page->title . ' (' . html_writer::link($CFG->wwwroot . '/mod/wiki/view.php?pageid=' . $page->id, get_string('view', 'wiki')) . ')');
+ $table->head = array('title' => format_string($page->title) . ' (' . html_writer::link($CFG->wwwroot . '/mod/wiki/view.php?pageid=' . $page->id, get_string('view', 'wiki')) . ')');
$table->align = array('title' => 'left');
$table->width = '100%';
- $table->data = array(array(file_rewrite_pluginfile_urls($page->cachedcontent, 'pluginfile.php', $context->id, 'mod_wiki', 'attachments', $page->id)));
+ $table->data = array(array(file_rewrite_pluginfile_urls(format_text($page->cachedcontent, FORMAT_HTML), 'pluginfile.php', $context->id, 'mod_wiki', 'attachments', $page->id)));
$table->colclasses = array('wikisearchresults');
$html .= html_writer::table($table);
}
@@ -77,8 +77,8 @@ public function diff($pageid, $old, $new, $options = array()) {
} else {
$total = 0;
}
- $diff1 = $old->diff;
- $diff2 = $new->diff;
+ $diff1 = format_text($old->diff, FORMAT_HTML);
+ $diff2 = format_text($new->diff, FORMAT_HTML);
$olduser = $old->user;
$versionlink = new moodle_url('/mod/wiki/viewversion.php', array('pageid' => $pageid, 'versionid' => $old->id));

0 comments on commit 0269a79

Please sign in to comment.
Something went wrong with that request. Please try again.