]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-15117 wiki converted
authorskodak <skodak>
Thu, 5 Jun 2008 09:14:42 +0000 (09:14 +0000)
committerskodak <skodak>
Thu, 5 Jun 2008 09:14:42 +0000 (09:14 +0000)
mod/wiki/view.php

index a018703685d737a3510f2a6b741d8d6d6e7137dc..67eb34c04c93316bef784f0af372c61a4823d62c 100644 (file)
     /// 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