Merge pull request #724 from unclecheese/patch-8

FIX: Add "jpeg" to list of allowed extensions
This commit is contained in:
Will Rossiter 2012-08-17 13:37:49 -07:00
commit 4916b361f1

View File

@ -761,7 +761,7 @@ class HtmlEditorField_Toolbar extends RequestHandler {
* @return Array All extensions which can be handled by the different views.
*/
protected function getAllowedExtensions() {
$exts = array('jpg', 'gif', 'png', 'swf');
$exts = array('jpg', 'gif', 'png', 'swf','jpeg');
$this->extend('updateAllowedExtensions', $exts);
return $exts;
}