diff --git a/backup/backupfilesedit_form.php b/backup/backupfilesedit_form.php index 5b40ea50fb9..dce09fe9fa0 100644 --- a/backup/backupfilesedit_form.php +++ b/backup/backupfilesedit_form.php @@ -1,5 +1,4 @@ libdir.'/formslib.php'); class backup_files_edit_form extends moodleform { - function definition() { + + /** + * Form definition. + */ + public function definition() { $mform =& $this->_form; - $contextid = $this->_customdata['contextid']; - $options = array('subdirs'=>0, 'maxfiles'=>-1, 'accepted_types'=>'*', 'return_types'=>FILE_INTERNAL | FILE_REFERENCE); + + $options = array('subdirs' => 0, 'maxfiles' => -1, 'accepted_types' => '*', 'return_types' => FILE_INTERNAL | FILE_REFERENCE); $mform->addElement('filemanager', 'files_filemanager', get_string('files'), null, $options);