Fix phpcs
This commit is contained in:
parent
61b7564664
commit
4634312306
@ -49,7 +49,7 @@ $langs->loadLangs(array("bom@bom","companies","other","mails"));
|
|||||||
|
|
||||||
|
|
||||||
$action=GETPOST('action', 'aZ09');
|
$action=GETPOST('action', 'aZ09');
|
||||||
$confirm=GETPOST('confirm');
|
$confirm=GETPOST('confirm', 'alpha');
|
||||||
$id=(GETPOST('socid', 'int') ? GETPOST('socid', 'int') : GETPOST('id', 'int'));
|
$id=(GETPOST('socid', 'int') ? GETPOST('socid', 'int') : GETPOST('id', 'int'));
|
||||||
$ref = GETPOST('ref', 'alpha');
|
$ref = GETPOST('ref', 'alpha');
|
||||||
|
|
||||||
|
|||||||
@ -1205,4 +1205,3 @@ class BillOfMaterialsLine extends CommonObject
|
|||||||
return $error;
|
return $error;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -27,10 +27,10 @@ if (! defined('NOREQUIREAJAX')) define('NOREQUIREAJAX', '1');
|
|||||||
|
|
||||||
require '../../main.inc.php'; // Load $user and permissions
|
require '../../main.inc.php'; // Load $user and permissions
|
||||||
|
|
||||||
$id= GETPOST('id');
|
$id = GETPOST('id', 'int');
|
||||||
$w= GETPOST('w');
|
$w = GETPOST('w', 'int');
|
||||||
$h= GETPOST('h');
|
$h = GETPOST('h', 'int');
|
||||||
$query= GETPOST('query');
|
$query= GETPOST('query', 'alpha');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -63,7 +63,6 @@ if ($query=="cat")
|
|||||||
{
|
{
|
||||||
$filename=$obj['photo'];
|
$filename=$obj['photo'];
|
||||||
}
|
}
|
||||||
$viewfilename=$obj['photo'];
|
|
||||||
$file=DOL_URL_ROOT.'/viewimage.php?modulepart=category&entity='.$object->entity.'&file='.urlencode($pdir.$filename);
|
$file=DOL_URL_ROOT.'/viewimage.php?modulepart=category&entity='.$object->entity.'&file='.urlencode($pdir.$filename);
|
||||||
header('Location: '.$file);
|
header('Location: '.$file);
|
||||||
exit;
|
exit;
|
||||||
@ -86,6 +85,8 @@ elseif ($query=="pro")
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
// TODO We don't need this. Size of image must be defined on HTML page, image must NOT be resize when downloaded.
|
||||||
|
|
||||||
// The file
|
// The file
|
||||||
$filename = $query.".jpg";
|
$filename = $query.".jpg";
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user