MDL-22574, filepicker conversion for user and group settings
authorDongsheng Cai <unoter@gmail.com>
Fri, 11 Jun 2010 05:10:12 +0000 (05:10 +0000)
committerDongsheng Cai <unoter@gmail.com>
Fri, 11 Jun 2010 05:10:12 +0000 (05:10 +0000)
group/group_form.php
user/editlib.php

index c2f7095..3d979c6 100644 (file)
@@ -43,7 +43,7 @@ class group_form extends moodleform {
             $options = array(get_string('no'), get_string('yes'));
             $mform->addElement('select', 'hidepicture', get_string('hidepicture'), $options);
 
-            $mform->addElement('file', 'imagefile', get_string('newpicture', 'group'));
+            $mform->addElement('filepicker', 'imagefile', get_string('newpicture', 'group'));
             $mform->addHelpButton('imagefile', 'newpicture', 'group');
         }
 
index d3f3842..b5f71ef 100644 (file)
@@ -245,7 +245,7 @@ function useredit_shared_definition(&$mform, $editoroptions = null) {
         $mform->addElement('checkbox', 'deletepicture', get_string('delete'));
         $mform->setDefault('deletepicture',false);
 
-        $mform->addElement('file', 'imagefile', get_string('newpicture'));
+        $mform->addElement('filepicker', 'imagefile', get_string('newpicture'));
         $mform->addHelpButton('imagefile', 'newpicture');
 
         $mform->addElement('text', 'imagealt', get_string('imagealt'), 'maxlength="100" size="30"');