From: skodak Date: Thu, 5 Jun 2008 09:14:42 +0000 (+0000) Subject: MDL-15117 wiki converted X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=4cd241c3e1427197f87959eda5fc0cffa4291c87;p=moodle.git MDL-15117 wiki converted --- diff --git a/mod/wiki/view.php b/mod/wiki/view.php index a018703685..67eb34c04c 100644 --- a/mod/wiki/view.php +++ b/mod/wiki/view.php @@ -404,7 +404,7 @@ /// isn't there (so the action defaults to 'view'), filter it. /// If the page does not yet exist, the display will default to 'edit'. if((count($actions) < 2 || $actions[0] == "view") && $wiki_entry && - record_exists('wiki_pages', 'pagename', addslashes($page), 'wiki', $wiki_entry->id)) { + $DB->record_exists('wiki_pages', array('pagename'=>$page, 'wiki'=>$wiki_entry->id))) { print(format_text($content, $moodle_format)); } else if($actions[0]=='edit' && $reallyedit) { // Check the page isn't locked before printing out standard wiki content. (Locking