MDL-38852 repository_filesystem: missing setType calls
authorDan Poltawski <dan@moodle.com>
Wed, 3 Apr 2013 02:36:40 +0000 (10:36 +0800)
committerDan Poltawski <dan@moodle.com>
Wed, 3 Apr 2013 03:13:58 +0000 (11:13 +0800)
repository/filesystem/lib.php

index c856371..a5ffca8 100644 (file)
@@ -207,6 +207,7 @@ class repository_filesystem extends repository {
                 if (empty($choices)) {
                     $mform->addElement('static', '', '', get_string('nosubdir', 'repository_filesystem', $path));
                     $mform->addElement('hidden', 'fs_path', '');
+                    $mform->setType('fs_path', PARAM_PATH);
                 } else {
                     $mform->addElement('select', 'fs_path', $fieldname, $choices);
                     $mform->addElement('static', null, '',  get_string('information','repository_filesystem', $path));