BUG 9058 "Al cargar un nuevo logo no lo muestra en ese momento..." SOLVED
- In Admin>Settings>Logo logo is not displayed when you upload, this in FireFox - The problem is in the function "exif_imagetype" which requires support for "exif" - Changed function "exif_imagetype" by "getimagesize"
This commit is contained in:
@@ -970,8 +970,13 @@ class adminProxy extends HttpProxyController
|
|||||||
G::uploadFile($tmpFile, $dir, 'tmp' . $fileName);
|
G::uploadFile($tmpFile, $dir, 'tmp' . $fileName);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
if (extension_loaded('exif')) {
|
||||||
|
$typeMime = exif_imagetype($dir . '/'. 'tmp'.$fileName);
|
||||||
|
}
|
||||||
|
else {
|
||||||
$arrayInfo = getimagesize($dir . '/' . 'tmp' . $fileName);
|
$arrayInfo = getimagesize($dir . '/' . 'tmp' . $fileName);
|
||||||
$typeMime = $arrayInfo[2];
|
$typeMime = $arrayInfo[2];
|
||||||
|
}
|
||||||
|
|
||||||
if ($typeMime == $allowedTypeArray['index' . base64_encode($_FILES['img']['type'])]) {
|
if ($typeMime == $allowedTypeArray['index' . base64_encode($_FILES['img']['type'])]) {
|
||||||
$error = false;
|
$error = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user