]> git.mjollnir.org Git - moodle.git/commitdiff
Some fixes to avoid pointless uses of $ME
authormoodler <moodler>
Mon, 16 Jun 2003 14:40:51 +0000 (14:40 +0000)
committermoodler <moodler>
Mon, 16 Jun 2003 14:40:51 +0000 (14:40 +0000)
mod/assignment/mod.html
mod/assignment/submissions.php
mod/choice/mod.html
mod/forum/mod.html
mod/journal/mod.html
mod/quiz/mod.html
mod/resource/mod.html
mod/survey/mod.html
mod/workshop/mod.html

index 555cfb4af8de007fc3ad52a0170b72fca0b65a8e..e45720e0fac2d3e57fd84e6bf79098bccbf82137 100644 (file)
@@ -32,7 +32,7 @@
     }
 ?>
 
-<form name="form" method="post" <?php echo $onsubmit ?> action="<?php echo $ME ?>">
+<form name="form" method="post" <?php echo $onsubmit ?> action="mod.php">
 <table cellpadding=5>
 <tr valign=top>
     <td align=right><p><b><?php print_string("assignmentname", "assignment") ?>:</b></p></td>
index fc15a82739578c276ef59b5a355ed82d9ee03274..da80c19c2ca9d7a112ac14950226e4514f04df86 100644 (file)
     print_simple_box_start("CENTER", "50%");
     echo "<P align=\"CENTER\">";
     print_string("order");
-    echo ": <A HREF=\"$ME?id=$assignment->id&sort=lastname&dir=ASC\">".get_string("name")."</a> - ";
-    echo "<A HREF=\"$ME?id=$assignment->id\">".get_string("lastmodified")."</a> - ";
-    echo "<A HREF=\"$ME?id=$assignment->id&sort=grade\">".get_string("feedback")."</a>";
+    echo ": <A HREF=\"submissions.php?id=$assignment->id&sort=lastname&dir=ASC\">".get_string("name")."</a> - ";
+    echo "<A HREF=\"submissions.php?id=$assignment->id\">".get_string("lastmodified")."</a> - ";
+    echo "<A HREF=\"submissions.php?id=$assignment->id&sort=grade\">".get_string("feedback")."</a>";
     echo "</P>";
     print_simple_box_end();
     print_spacer(8,1);
index 95233e5ec9f9459b1dca70ebd551fb65c6e4cab7..2db776ee34365ca1355cef095d2cb72e5dd1451e 100644 (file)
@@ -39,7 +39,7 @@
     }
 
 ?>
-<form name="form" method="post" <?php echo $onsubmit ?> action="<?php echo $ME ?>">
+<form name="form" method="post" <?php echo $onsubmit ?> action="mod.php">
 
 <table cellpadding=5>
 
index 7c9880d0c949ba01de92b9e2b28af8b57e9128d7..6df4c01afe956688f75939ee9839b698a5b88279 100644 (file)
@@ -18,7 +18,7 @@
         $form->forcesubscribe = "";
     }
 ?>
-<form name="form" method="post" action="<?php echo $ME ?>">
+<form name="form" method="post" <?php echo $onsubmit ?> action="mod.php">
 <table cellpadding=5>
 <tr>
 <tr valign=top>
index 0aebbcf87769c39614805c4b18a8dcda2e97a533..56f223b69e6f819c83a49c62148834bd403f9744 100644 (file)
@@ -10,7 +10,7 @@
     }
 ?>
 
-<form name="form" method="post" action="<?php echo $ME ?>">
+<form name="form" method="post" <?php echo $onsubmit ?> action="mod.php">
 <table cellpadding=5>
 <tr valign=top>
     <td align=right><p><b><?php print_string("journalname", "journal") ?>:</b></p></td>
index e1759187f5a832084056a2a4d79c8370dc20976b..ed6b6d72681d437f2ba7d47a7a12a700638df73b 100644 (file)
 <input type="hidden" name=modulename    value="<?php p($form->modulename) ?>">
 <input type="hidden" name=instance      value="<?php p($form->instance) ?>">
 <input type="hidden" name=mode          value="<?php p($form->mode) ?>">
-<input type="hidden" name=destination   value="<?php echo $ME ?>">
-<INPUT type="submit" value="<?php print_string("continue") ?>">
+<input type="hidden" name=destination   value="<?php echo "$CFG->wwwroot/course/mod.php" ?>">
+<input type="submit" value="<?php print_string("continue") ?>">
 </center>
 </form>
index ab31e0e949eb7c8ed8c29b9985d1249535dd55ba..67d60d5af5042f7c5e1765c81438171f60a6cc2d 100644 (file)
@@ -68,7 +68,7 @@
 <input type="hidden" name=modulename  value="<?php p($form->modulename) ?>">
 <input type="hidden" name=instance    value="<?php p($form->instance) ?>">
 <input type="hidden" name=mode        value="<?php p($form->mode) ?>">
-<input type="hidden" name=destination value="<?php echo $ME ?>">
+<input type="hidden" name=destination   value="<?php echo "$CFG->wwwroot/course/mod.php" ?>">
 <input type="submit" value="<?php print_string("continue") ?>">
 </center>
 </form>
index 4260d980ff975bf9de49f53daf99efcb7ef34c0e..ade46e03a778588414196589dd52878684449aa8 100644 (file)
@@ -37,7 +37,7 @@
 </table>
 <CENTER>
 <input type="hidden" name=intro   value="<?php p($form->intro) ?>">
-<input type="hidden" name=destination value="<?php echo $ME ?>">
+<input type="hidden" name=destination   value="<?php echo "$CFG->wwwroot/course/mod.php" ?>">
 
 <input type="hidden" name=course     value="<?php p($form->course) ?>">
 <input type="hidden" name=coursemodule  value="<?php p($form->coursemodule) ?>">
index 10f3ade391fc0eacaeb2e07edb940a6b677eb5da..14a82d2a249ed9ee84dab3d5cb087d93dbc94b7d 100644 (file)
@@ -49,7 +49,7 @@
     }
 ?>
 
-<form name="form" method="post" <?=$onsubmit ?> action="<?=$ME ?>">
+<form name="form" method="post" <?php echo $onsubmit ?> action="mod.php">
 <table cellpadding=5>
 <tr valign=top>
     <td align=right><P><B><? print_string("title", "workshop") ?>:</B></P></TD>