]> git.mjollnir.org Git - moodle.git/commitdiff
Fixes:
authornfreear <nfreear>
Wed, 8 Nov 2006 11:12:06 +0000 (11:12 +0000)
committernfreear <nfreear>
Wed, 8 Nov 2006 11:12:06 +0000 (11:12 +0000)
  required_param call - added parameter type;
  set $usehtmleditor variable.
(Bug MDL-7380 "groups".)

group/groupui/index.php

index b6047f5891f51456c2aedafcda1cf725a0953670..4761d5591ee5f085911aec1e0305c4d5e4d598fd 100644 (file)
@@ -15,7 +15,7 @@ require_once($CFG->libdir.'/uploadlib.php');
 
 $error = false;
  
-$courseid = required_param('id');         
+$courseid = required_param('id', PARAM_INTEGER);         
 
 // Get the course information so we can print the header and check the course id
 // is valid
@@ -53,6 +53,9 @@ if (!$error) {
                     "-> <a href=\"$CFG->wwwroot/user/index.php?id=$courseid\">$strparticipants</a> ".
                     "-> $strgroups", "", "", true, '', user_login_string($course, $USER));
 
+    //TODO: set to false in /course/group.php
+    $usehtmleditor = false;
+
        require_once('form.html');
 
        print_footer($course);