mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-05 17:18:13 +01:00
Update company.php
This commit is contained in:
committed by
GitHub
parent
3c223f82c3
commit
a90f0863de
@@ -137,7 +137,7 @@ if (($action == 'update' && !GETPOST("cancel", 'alpha'))
|
||||
$arrayofimages = array('logo', 'logo_squarred');
|
||||
//var_dump($_FILES); exit;
|
||||
foreach ($arrayofimages as $varforimage) {
|
||||
if ($_FILES[$varforimage]["name"] && !image_format_supported($_FILES[$varforimage]["name"], 1)) { // Logo can be used on a lot of different places. Recommend using jpg and png for better compatibility.
|
||||
if ($_FILES[$varforimage]["name"] && !image_format_supported($_FILES[$varforimage]["name"], 0)) { // Logo can be used on a lot of different places. Recommend using jpg and png for better compatibility.
|
||||
$langs->load("errors");
|
||||
setEventMessages($langs->trans("ErrorBadImageFormat"), null, 'errors');
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user