From 851a89ff1bf227d22db9e950c158d4b9ac8018c5 Mon Sep 17 00:00:00 2001 From: moodler Date: Tue, 6 May 2003 03:33:55 +0000 Subject: [PATCH] Minor fixes for re-inclusion and also links in email --- mod/workshop/lib.php | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/mod/workshop/lib.php b/mod/workshop/lib.php index 8e70a8a7b7..05856e3a08 100644 --- a/mod/workshop/lib.php +++ b/mod/workshop/lib.php @@ -1,7 +1,14 @@ dirroot/files/mimetypes.php"); + /*** Constants **********************************/ $WORKSHOP_TYPE = array (0 => get_string("notgraded", "workshop"), @@ -30,7 +37,6 @@ $WORKSHOP_EWEIGHTS = array( 0 => -4.0, 1 => -2.0, 2 => -1.5, 3 => -1.0, 4 => -0 $WORKSHOP_FWEIGHTS = array( 0 => 0, 1 => 0.1, 2 => 0.25, 3 => 0.5, 4 => 0.75, 5 => 1, 6 => 1.5, 7 => 2.0, 8 => 3.0, 9 => 5.0, 10 => 7.5, 11=> 10.0); -define("COMMENTSCALE", 20); /*** Standard Moodle functions ****************** function workshop_add_instance($workshop) @@ -266,7 +272,7 @@ function workshop_cron () { $posttext .= "---------------------------------------------------------------------\n"; $posttext .= $msg; $posttext .= "You can see it in your workshop assignment:\n"; - $posttext .= " $CFG->wwwroot/mod/workshop/view.php?a=$workshop->id\n"; + $posttext .= " $CFG->wwwroot/mod/workshop/view.php?id=$workshop->id\n"; $posttext .= "---------------------------------------------------------------------\n"; if ($user->mailformat == 1) { // HTML $posthtml = "

". @@ -275,7 +281,7 @@ function workshop_cron () { "wwwroot/mod/workshop/view.php?a=$pgassessment->id\">$workshop->name

"; $posthtml .= "
"; $posthtml .= "

$msg

"; - $posthtml .= "

You can see it wwwroot/mod/workshop/view.php?a=$workshop->id\">"; + $posthtml .= "

You can see it wwwroot/mod/workshop/view.php?id=$workshop->id\">"; $posthtml .= "in to your peer graded assignment.


"; } else { $posthtml = ""; -- 2.39.5