From 4cd241c3e1427197f87959eda5fc0cffa4291c87 Mon Sep 17 00:00:00 2001 From: skodak Date: Thu, 5 Jun 2008 09:14:42 +0000 Subject: [PATCH] MDL-15117 wiki converted --- mod/wiki/view.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5