mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
ENHANCEMENT: Add "jpeg" to list of allowed extensions
.jpeg is the correct extension for these files, and they were being filtered out of the list.
This commit is contained in:
parent
31d6070bb5
commit
4fde42f72e
@ -761,7 +761,7 @@ class HtmlEditorField_Toolbar extends RequestHandler {
|
|||||||
* @return Array All extensions which can be handled by the different views.
|
* @return Array All extensions which can be handled by the different views.
|
||||||
*/
|
*/
|
||||||
protected function getAllowedExtensions() {
|
protected function getAllowedExtensions() {
|
||||||
$exts = array('jpg', 'gif', 'png', 'swf');
|
$exts = array('jpg', 'gif', 'png', 'swf','jpeg');
|
||||||
$this->extend('updateAllowedExtensions', $exts);
|
$this->extend('updateAllowedExtensions', $exts);
|
||||||
return $exts;
|
return $exts;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user