]> git.mjollnir.org Git - moodle.git/commitdiff
DIsabling formatting for now, until we can separate out wiki
authormoodler <moodler>
Tue, 17 Aug 2004 16:31:52 +0000 (16:31 +0000)
committermoodler <moodler>
Tue, 17 Aug 2004 16:31:52 +0000 (16:31 +0000)
content from wiki forms etc ... and only apply formatting to the content.

mod/wiki/view.php

index a7105e57d6dcaa6aeb944a1d0a8e96293ddb484a..97ce42607b0df606c2a20f62f28d22b344ac1e45 100644 (file)
         global $ewiki_author, $USER;
         $ewiki_author=fullname($USER);
         $content=ewiki_page($wikipage);
+        $content2='';
 
         ### RESTORE ID from Moodle
         $_REQUEST["id"]=$moodleID;
 ///     ################# EWIKI Part ###########################
     }
     else {
-        $content = '<div align="center">'.get_string('nowikicreated', 'wiki').'</div>';
+        $content = '';
+        $content2 = '<div align="center">'.get_string('nowikicreated', 'wiki').'</div>';
     }
 
 
     print_simple_box_start( "right", "100%", "$THEME->cellcontent", "20");
     if($ewiki_action=="edit") {
       # When editing, the filters shall not interfere the wiki-source
-      print $content;
+      print $content.$content2;
     } else {
-      print(format_text($content, $moodle_format));
+      //print(format_text($content, $moodle_format));    /// DISABLED UNTIL IT CAN BE FIXED
+      print $content;
+      print $content2;
     }
     print_simple_box_end();
     echo "<br clear=all />";