Merge branch 'MDL-36400-master' of git://github.com/ankitagarwal/moodle

This commit is contained in:
Sam Hemelryk
2012-11-26 11:01:15 +13:00
+1 -1
View File
@@ -69,7 +69,7 @@ class calendar_addsubscription_form extends moodleform {
$mform->setType('pollinterval', PARAM_INT);
// Import file
$mform->addElement('filepicker', 'importfile', get_string('importfromfile', 'calendar'));
$mform->addElement('filepicker', 'importfile', get_string('importfromfile', 'calendar'), null, array('accepted_types' => '.ics'));
// Disable appropriate elements depending on import from value.
$mform->disabledIf('pollinterval', 'importfrom', 'eq', CALENDAR_IMPORT_FROM_FILE);