Browse files

MDL-36400 calendar: Allow only ics file type in ical import

  • Loading branch information...
1 parent 8068fcb commit 17475a2094be531cc5dc9cf8759649186256593c @ankitagarwal ankitagarwal committed Nov 21, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 calendar/managesubscriptions_form.php
View
2 calendar/managesubscriptions_form.php
@@ -69,7 +69,7 @@ public function definition() {
$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);

0 comments on commit 17475a2

Please sign in to comment.