Skip to content

Commit

Permalink
MDL-9145 Fixed 1) and 2)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasconnault committed Apr 4, 2007
1 parent b3a55ad commit a204aa1
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions group/edit_form.php
Expand Up @@ -21,9 +21,7 @@ function definition () {
$groupingid = $this->_customdata['groupingid'];
$newgrouping = $this->_customdata['newgrouping'];
$courseid = $this->_customdata['courseid'];


$id = $group->id;
$mform =& $this->_form;

$mform->addElement('text','name', get_string('groupname', 'group'),'maxlength="254" size="50"');
Expand All @@ -38,12 +36,12 @@ function definition () {
$mform->setHelpButton('enrolmentkey', array('groupenrolmentkey', get_string('enrolmentkey', 'group')), true);
$mform->setType('enrolmentkey', PARAM_RAW);

$options = array(get_string('no'), get_string('yes'));
$mform->addElement('select', 'hidepicture', get_string('hidepicture'), $options);

$maxbytes = get_max_upload_file_size($CFG->maxbytes, $COURSE->maxbytes);

if (!empty($CFG->gdversion) and $maxbytes) {
$options = array(get_string('no'), get_string('yes'));
$mform->addElement('select', 'hidepicture', get_string('hidepicture'), $options);

$this->set_upload_manager(new upload_manager('imagefile', false, false, null, false, 0, true, true, false));
$mform->addElement('file', 'imagefile', get_string('newpicture', 'group'));
$mform->setHelpButton('imagefile', array ('picture', get_string('helppicture')), true);
Expand Down

0 comments on commit a204aa1

Please sign in to comment.