]> git.mjollnir.org Git - moodle.git/commitdiff
Cleaning
authormoodler <moodler>
Fri, 10 Mar 2006 09:06:16 +0000 (09:06 +0000)
committermoodler <moodler>
Fri, 10 Mar 2006 09:06:16 +0000 (09:06 +0000)
mod/data/add.php

index e49393ae371100f7ec5ca021038b81573b585c6c..40708234db20b839e6820dc7eb5f7ca3fc1516f5 100755 (executable)
@@ -24,9 +24,7 @@
 
     require_once('../../config.php');
     require_once('lib.php');
-    require_once($CFG->libdir.'/blocklib.php');
 
-    require_once('pagelib.php');
     require_login();
 
     $mode ='addtemplate';    //define the mode for this page, only 1 mode available
@@ -64,7 +62,7 @@
     }
 
     ///checking for participants
-    if ((!isteacher($course->id)) && $data->participants ==PARTICIPANTS_T) {
+    if ((!isteacher($course->id)) && $data->participants == PARTICIPANTS_T) {
         error ('students are not allowed to participate in this activity');
     }