forked from Wavyzz/dolibarr
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');
|
$arrayofimages = array('logo', 'logo_squarred');
|
||||||
//var_dump($_FILES); exit;
|
//var_dump($_FILES); exit;
|
||||||
foreach ($arrayofimages as $varforimage) {
|
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");
|
$langs->load("errors");
|
||||||
setEventMessages($langs->trans("ErrorBadImageFormat"), null, 'errors');
|
setEventMessages($langs->trans("ErrorBadImageFormat"), null, 'errors');
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user