|
|
|
@ -220,9 +220,6 @@ class ImageAjaxFileManager |
|
|
|
|
case 'jpg': |
|
|
|
|
$saved = $func($this->_imgFinal, $filename, $quality); |
|
|
|
|
break; |
|
|
|
|
case 'jpeg': |
|
|
|
|
$saved = $func($this->_imgFinal, $filename, $quality);//hack for Chamilo fix thumbnail of jpeg files |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if ($saved === false) |
|
|
|
@ -276,6 +273,9 @@ class ImageAjaxFileManager |
|
|
|
|
break; |
|
|
|
|
case 'jpg': |
|
|
|
|
$func($this->_imgFinal, '', $quality); |
|
|
|
|
break; |
|
|
|
|
case 'jpeg': |
|
|
|
|
$func($this->_imgFinal, '', $quality); |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
return true; |
|
|
|
|