Merge branch 'm25_MDL-38790_Missing_setType_in_My_private_files_form' of https:/...
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Tue, 2 Apr 2013 19:06:21 +0000 (21:06 +0200)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Tue, 2 Apr 2013 19:06:21 +0000 (21:06 +0200)
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'));