This commit is contained in:
Shish 2010-07-19 13:35:10 +01:00
parent d6392dfd44
commit 7abb4742a5

View File

@ -342,7 +342,9 @@ class Image {
* @retval string * @retval string
*/ */
public function get_mime_type() { public function get_mime_type() {
return "image/".($this->ext); $type = strtolower($this->ext);
if($type == "jpg") $type = "jpeg";
return "image/$type";
} }
/** /**