]> git.mjollnir.org Git - moodle.git/commitdiff
Some cleaning up ... shouldn't make much difference
authormoodler <moodler>
Wed, 15 Oct 2003 02:48:40 +0000 (02:48 +0000)
committermoodler <moodler>
Wed, 15 Oct 2003 02:48:40 +0000 (02:48 +0000)
lib/rte/richedit.php
lib/rte/rte.php
lib/weblib.php

index 275b682a23b0eeefc30d02f656d2623ccf9cf2ce..a7adf3b5600b930ecdb696bf9247cc7c0edda9d0 100644 (file)
 -->
 <?php  
     include("../../config.php"); 
+
+    require_variable($id);
+
 ?>
 <html><head>
 <meta content="HTML 4.0" name="vs_targetSchema">
index ec214c660a7f8d7747566ea394be68c49e482341..388401acb24a143cc53357d6f4e0d75a24b0c7b9 100644 (file)
 //
 ////////////////////////////////////////////////////////////////////////////////
 
+<?php  
+    include("../../config.php"); 
+
+    require_variable($id);
+
+?>
+
 // Internal (private) properties.  
 // RichEditor is the global RichEditor object (function) of which there is only
 // 1 instance.
index a26c99fbe9f3b83c1fa81d903d6341bb630afdd0..2e75c98abb0c96f7f984df39122e5e3db4d590d9 100644 (file)
@@ -1259,7 +1259,7 @@ function print_textarea($richedit, $rows, $cols, $width, $height, $name, $value=
     if ($richedit) {
         $richediturl = "$CFG->wwwroot/lib/rte/richedit.html";
         if (!empty($courseid) and isteacher($courseid)) {
-            $richediturl = "$CFG->wwwroot/lib/rte/richedit.php?id=$courseid&wwwroot=$CFG->wwwroot";
+            $richediturl = "$CFG->wwwroot/lib/rte/richedit.php?id=$courseid";
         }
 
         echo "<object id=\"richedit\" style=\"background-color: buttonface\"";