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:
unclecheese 2012-08-17 13:17:26 -03:00
parent 31d6070bb5
commit 4fde42f72e

View File

@ -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;
} }