MDL-38790 Repositories: missing call to setType in 'My private files' form
authorMatteo Scaramuccia <moodle@matteoscaramuccia.com>
Thu, 28 Mar 2013 21:12:53 +0000 (22:12 +0100)
committerMatteo Scaramuccia <moodle@matteoscaramuccia.com>
Thu, 28 Mar 2013 21:12:53 +0000 (22:12 +0100)
user/files_form.php

index 1cb3715..bbbd841 100644 (file)
@@ -36,6 +36,7 @@ class user_files_form extends moodleform {
 
         $mform->addElement('filemanager', 'files_filemanager', get_string('files'), null, $options);
         $mform->addElement('hidden', 'returnurl', $data->returnurl);
+        $mform->setType('returnurl', PARAM_LOCALURL);
 
         $this->add_action_buttons(true, get_string('savechanges'));