mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-01 05:55:02 +03:00
Mime type identification fix.
This commit is contained in:
parent
16fb2deae5
commit
d30dc95f82
5
engine/lib/external/LiveImage/Image.php
vendored
5
engine/lib/external/LiveImage/Image.php
vendored
|
@ -106,7 +106,6 @@ class LiveImage {
|
|||
/**
|
||||
* Определяем тип файла изображения
|
||||
*/
|
||||
$size['mime']=image_type_to_mime_type($size['mime']);
|
||||
switch ($size['mime']) {
|
||||
case 'image/png':
|
||||
case "image/x-png":
|
||||
|
@ -550,8 +549,8 @@ class LiveImage {
|
|||
}
|
||||
|
||||
public function set_last_error($id) {
|
||||
$this->last_err_text=$this->error_messages[$id];
|
||||
$this->last_err_num=$this->$id;
|
||||
$this->last_err_text = $this->error_messages[$id];
|
||||
$this->last_err_num = $id;
|
||||
}
|
||||
|
||||
public function get_last_error() {
|
||||
|
|
Loading…
Reference in a new issue