Skip to content

Commit

Permalink
Add new accepted formats to CSS upload handler
Browse files Browse the repository at this point in the history
  • Loading branch information
ywarnier committed Mar 3, 2016
1 parent 4746db2 commit b58f773
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/admin/settings.lib.php
Expand Up @@ -234,7 +234,7 @@ function handle_stylesheets()
$form->addElement('text', 'name_stylesheet', get_lang('NameStylesheet'), array('size' => '40', 'maxlength' => '40'));
$form->addRule('name_stylesheet', get_lang('ThisFieldIsRequired'), 'required');
$form->addElement('file', 'new_stylesheet', get_lang('UploadNewStylesheet'));
$allowed_file_types = array('css', 'zip', 'jpeg', 'jpg', 'png', 'gif', 'ico','psd');
$allowed_file_types = array('css', 'zip', 'jpeg', 'jpg', 'png', 'gif', 'ico', 'psd', 'xcf', 'svg', 'webp', 'woff', 'woff2');

$form->addRule('new_stylesheet', get_lang('InvalidExtension').' ('.implode(',', $allowed_file_types).')', 'filetype', $allowed_file_types);
$form->addRule('new_stylesheet', get_lang('ThisFieldIsRequired'), 'required');
Expand Down

0 comments on commit b58f773

Please sign in to comment.