Merge pull request #23175 from grandoc/new_branch_10_12_2022
Update code for php8 compliance
This commit is contained in:
commit
9f2f6ef0a0
@ -258,7 +258,7 @@ class pdf_standard_asset extends ModelePDFAsset
|
|||||||
|
|
||||||
foreach ($objphoto->liste_photos($dir, 1) as $key => $obj)
|
foreach ($objphoto->liste_photos($dir, 1) as $key => $obj)
|
||||||
{
|
{
|
||||||
if (empty($conf->global->CAT_HIGH_QUALITY_IMAGES)) // If CAT_HIGH_QUALITY_IMAGES not defined, we use thumb if defined and then original photo
|
if (!getDolGlobalInt('CAT_HIGH_QUALITY_IMAGES')) // If CAT_HIGH_QUALITY_IMAGES not defined, we use thumb if defined and then original photo
|
||||||
{
|
{
|
||||||
if ($obj['photo_vignette'])
|
if ($obj['photo_vignette'])
|
||||||
{
|
{
|
||||||
|
|||||||
@ -271,7 +271,7 @@ class pdf_eratosthene extends ModelePDFCommandes
|
|||||||
}
|
}
|
||||||
|
|
||||||
foreach ($objphoto->liste_photos($dir, 1) as $key => $obj) {
|
foreach ($objphoto->liste_photos($dir, 1) as $key => $obj) {
|
||||||
if (empty($conf->global->CAT_HIGH_QUALITY_IMAGES)) { // If CAT_HIGH_QUALITY_IMAGES not defined, we use thumb if defined and then original photo
|
if (!getDolGlobalInt('CAT_HIGH_QUALITY_IMAGES')) { // If CAT_HIGH_QUALITY_IMAGES not defined, we use thumb if defined and then original photo
|
||||||
if ($obj['photo_vignette']) {
|
if ($obj['photo_vignette']) {
|
||||||
$filename = $obj['photo_vignette'];
|
$filename = $obj['photo_vignette'];
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@ -252,7 +252,7 @@ class pdf_storm extends ModelePDFDeliveryOrder
|
|||||||
$dir = $conf->product->dir_output.'/'.$midir;
|
$dir = $conf->product->dir_output.'/'.$midir;
|
||||||
|
|
||||||
foreach ($objphoto->liste_photos($dir, 1) as $key => $obj) {
|
foreach ($objphoto->liste_photos($dir, 1) as $key => $obj) {
|
||||||
if (empty($conf->global->CAT_HIGH_QUALITY_IMAGES)) { // If CAT_HIGH_QUALITY_IMAGES not defined, we use thumb if defined and then original photo
|
if (!getDolGlobalInt('CAT_HIGH_QUALITY_IMAGES')) { // If CAT_HIGH_QUALITY_IMAGES not defined, we use thumb if defined and then original photo
|
||||||
if ($obj['photo_vignette']) {
|
if ($obj['photo_vignette']) {
|
||||||
$filename = $obj['photo_vignette'];
|
$filename = $obj['photo_vignette'];
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@ -221,7 +221,7 @@ class pdf_espadon extends ModelePdfExpedition
|
|||||||
$realpath = '';
|
$realpath = '';
|
||||||
|
|
||||||
foreach ($objphoto->liste_photos($dir, 1) as $key => $obj) {
|
foreach ($objphoto->liste_photos($dir, 1) as $key => $obj) {
|
||||||
if (empty($conf->global->CAT_HIGH_QUALITY_IMAGES)) { // If CAT_HIGH_QUALITY_IMAGES not defined, we use thumb if defined and then original photo
|
if (!getDolGlobalInt('CAT_HIGH_QUALITY_IMAGES')) { // If CAT_HIGH_QUALITY_IMAGES not defined, we use thumb if defined and then original photo
|
||||||
if ($obj['photo_vignette']) {
|
if ($obj['photo_vignette']) {
|
||||||
$filename = $obj['photo_vignette'];
|
$filename = $obj['photo_vignette'];
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@ -246,7 +246,7 @@ class pdf_rouget extends ModelePdfExpedition
|
|||||||
$realpath = '';
|
$realpath = '';
|
||||||
|
|
||||||
foreach ($objphoto->liste_photos($dir, 1) as $key => $obj) {
|
foreach ($objphoto->liste_photos($dir, 1) as $key => $obj) {
|
||||||
if (empty($conf->global->CAT_HIGH_QUALITY_IMAGES)) {
|
if (!getDolGlobalInt('CAT_HIGH_QUALITY_IMAGES')) {
|
||||||
// If CAT_HIGH_QUALITY_IMAGES not defined, we use thumb if defined and then original photo
|
// If CAT_HIGH_QUALITY_IMAGES not defined, we use thumb if defined and then original photo
|
||||||
if ($obj['photo_vignette']) {
|
if ($obj['photo_vignette']) {
|
||||||
$filename = $obj['photo_vignette'];
|
$filename = $obj['photo_vignette'];
|
||||||
|
|||||||
@ -304,7 +304,7 @@ class pdf_sponge extends ModelePDFFactures
|
|||||||
}
|
}
|
||||||
|
|
||||||
foreach ($objphoto->liste_photos($dir, 1) as $key => $obj) {
|
foreach ($objphoto->liste_photos($dir, 1) as $key => $obj) {
|
||||||
if (empty($conf->global->CAT_HIGH_QUALITY_IMAGES)) { // If CAT_HIGH_QUALITY_IMAGES not defined, we use thumb if defined and then original photo
|
if (!getDolGlobalInt('CAT_HIGH_QUALITY_IMAGES')) { // If CAT_HIGH_QUALITY_IMAGES not defined, we use thumb if defined and then original photo
|
||||||
if ($obj['photo_vignette']) {
|
if ($obj['photo_vignette']) {
|
||||||
$filename = $obj['photo_vignette'];
|
$filename = $obj['photo_vignette'];
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@ -280,7 +280,7 @@ class pdf_azur extends ModelePDFPropales
|
|||||||
$dir = $conf->product->dir_output.'/'.$midir; //Check repertory of the current product
|
$dir = $conf->product->dir_output.'/'.$midir; //Check repertory of the current product
|
||||||
}
|
}
|
||||||
foreach ($objphoto->liste_photos($dir, 1) as $key => $obj) {
|
foreach ($objphoto->liste_photos($dir, 1) as $key => $obj) {
|
||||||
if (empty($conf->global->CAT_HIGH_QUALITY_IMAGES)) { // If CAT_HIGH_QUALITY_IMAGES not defined, we use thumb if defined and then original photo
|
if (!getDolGlobalInt('CAT_HIGH_QUALITY_IMAGES')) { // If CAT_HIGH_QUALITY_IMAGES not defined, we use thumb if defined and then original photo
|
||||||
if ($obj['photo_vignette']) {
|
if ($obj['photo_vignette']) {
|
||||||
$filename = $obj['photo_vignette'];
|
$filename = $obj['photo_vignette'];
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@ -267,7 +267,7 @@ class pdf_cyan extends ModelePDFPropales
|
|||||||
}
|
}
|
||||||
|
|
||||||
foreach ($objphoto->liste_photos($dir, 1) as $key => $obj) {
|
foreach ($objphoto->liste_photos($dir, 1) as $key => $obj) {
|
||||||
if (empty($conf->global->CAT_HIGH_QUALITY_IMAGES)) { // If CAT_HIGH_QUALITY_IMAGES not defined, we use thumb if defined and then original photo
|
if (!getDolGlobalInt('CAT_HIGH_QUALITY_IMAGES')) { // If CAT_HIGH_QUALITY_IMAGES not defined, we use thumb if defined and then original photo
|
||||||
if ($obj['photo_vignette']) {
|
if ($obj['photo_vignette']) {
|
||||||
$filename = $obj['photo_vignette'];
|
$filename = $obj['photo_vignette'];
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@ -163,7 +163,7 @@ class pdf_squille extends ModelePdfReception
|
|||||||
$realpath = '';
|
$realpath = '';
|
||||||
|
|
||||||
foreach ($objphoto->liste_photos($dir, 1) as $key => $obj) {
|
foreach ($objphoto->liste_photos($dir, 1) as $key => $obj) {
|
||||||
if (empty($conf->global->CAT_HIGH_QUALITY_IMAGES)) {
|
if (!getDolGlobalInt('CAT_HIGH_QUALITY_IMAGES')) {
|
||||||
// If CAT_HIGH_QUALITY_IMAGES not defined, we use thumb if defined and then original photo
|
// If CAT_HIGH_QUALITY_IMAGES not defined, we use thumb if defined and then original photo
|
||||||
if ($obj['photo_vignette']) {
|
if ($obj['photo_vignette']) {
|
||||||
$filename = $obj['photo_vignette'];
|
$filename = $obj['photo_vignette'];
|
||||||
|
|||||||
@ -230,7 +230,7 @@ class pdf_eagle extends ModelePdfStockTransfer
|
|||||||
$realpath = '';
|
$realpath = '';
|
||||||
|
|
||||||
foreach ($objphoto->liste_photos($dir, 1) as $key => $obj) {
|
foreach ($objphoto->liste_photos($dir, 1) as $key => $obj) {
|
||||||
if (empty($conf->global->CAT_HIGH_QUALITY_IMAGES)) {
|
if (!getDolGlobalInt('CAT_HIGH_QUALITY_IMAGES')) {
|
||||||
// If CAT_HIGH_QUALITY_IMAGES not defined, we use thumb if defined and then original photo
|
// If CAT_HIGH_QUALITY_IMAGES not defined, we use thumb if defined and then original photo
|
||||||
if ($obj['photo_vignette']) {
|
if ($obj['photo_vignette']) {
|
||||||
$filename = $obj['photo_vignette'];
|
$filename = $obj['photo_vignette'];
|
||||||
|
|||||||
@ -241,7 +241,7 @@ class pdf_eagle_proforma extends ModelePDFCommandes
|
|||||||
$dir = $conf->product->dir_output.'/'.$midir;
|
$dir = $conf->product->dir_output.'/'.$midir;
|
||||||
|
|
||||||
foreach ($objphoto->liste_photos($dir, 1) as $key => $obj) {
|
foreach ($objphoto->liste_photos($dir, 1) as $key => $obj) {
|
||||||
if (empty($conf->global->CAT_HIGH_QUALITY_IMAGES)) { // If CAT_HIGH_QUALITY_IMAGES not defined, we use thumb if defined and then original photo
|
if (!getDolGlobalInt('CAT_HIGH_QUALITY_IMAGES')) { // If CAT_HIGH_QUALITY_IMAGES not defined, we use thumb if defined and then original photo
|
||||||
if ($obj['photo_vignette']) {
|
if ($obj['photo_vignette']) {
|
||||||
$filename = $obj['photo_vignette'];
|
$filename = $obj['photo_vignette'];
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@ -240,7 +240,7 @@ class pdf_cornas extends ModelePDFSuppliersOrders
|
|||||||
|
|
||||||
$realpath = '';
|
$realpath = '';
|
||||||
foreach ($objphoto->liste_photos($dir, 1) as $key => $obj) {
|
foreach ($objphoto->liste_photos($dir, 1) as $key => $obj) {
|
||||||
if (empty($conf->global->CAT_HIGH_QUALITY_IMAGES)) { // If CAT_HIGH_QUALITY_IMAGES not defined, we use thumb if defined and then original photo
|
if (!getDolGlobalInt('CAT_HIGH_QUALITY_IMAGES')) { // If CAT_HIGH_QUALITY_IMAGES not defined, we use thumb if defined and then original photo
|
||||||
if ($obj['photo_vignette']) {
|
if ($obj['photo_vignette']) {
|
||||||
$filename = $obj['photo_vignette'];
|
$filename = $obj['photo_vignette'];
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@ -254,7 +254,7 @@ class pdf_muscadet extends ModelePDFSuppliersOrders
|
|||||||
}
|
}
|
||||||
$realpath = '';
|
$realpath = '';
|
||||||
foreach ($objphoto->liste_photos($dir, 1) as $key => $obj) {
|
foreach ($objphoto->liste_photos($dir, 1) as $key => $obj) {
|
||||||
if (empty($conf->global->CAT_HIGH_QUALITY_IMAGES)) { // If CAT_HIGH_QUALITY_IMAGES not defined, we use thumb if defined and then original photo
|
if (!getDolGlobalInt('CAT_HIGH_QUALITY_IMAGES')) { // If CAT_HIGH_QUALITY_IMAGES not defined, we use thumb if defined and then original photo
|
||||||
if ($obj['photo_vignette']) {
|
if ($obj['photo_vignette']) {
|
||||||
$filename = $obj['photo_vignette'];
|
$filename = $obj['photo_vignette'];
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@ -251,7 +251,7 @@ class pdf_aurore extends ModelePDFSupplierProposal
|
|||||||
|
|
||||||
$realpath = '';
|
$realpath = '';
|
||||||
foreach ($objphoto->liste_photos($dir, 1) as $key => $obj) {
|
foreach ($objphoto->liste_photos($dir, 1) as $key => $obj) {
|
||||||
if (empty($conf->global->CAT_HIGH_QUALITY_IMAGES)) { // If CAT_HIGH_QUALITY_IMAGES not defined, we use thumb if defined and then original photo
|
if (!getDolGlobalInt('CAT_HIGH_QUALITY_IMAGES')) { // If CAT_HIGH_QUALITY_IMAGES not defined, we use thumb if defined and then original photo
|
||||||
if ($obj['photo_vignette']) {
|
if ($obj['photo_vignette']) {
|
||||||
$filename = $obj['photo_vignette'];
|
$filename = $obj['photo_vignette'];
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@ -223,7 +223,7 @@ class pdf_standard_myobject extends ModelePDFMyObject
|
|||||||
|
|
||||||
foreach ($objphoto->liste_photos($dir, 1) as $key => $obj)
|
foreach ($objphoto->liste_photos($dir, 1) as $key => $obj)
|
||||||
{
|
{
|
||||||
if (empty($conf->global->CAT_HIGH_QUALITY_IMAGES)) // If CAT_HIGH_QUALITY_IMAGES not defined, we use thumb if defined and then original photo
|
if (!getDolGlobalInt('CAT_HIGH_QUALITY_IMAGES')) // If CAT_HIGH_QUALITY_IMAGES not defined, we use thumb if defined and then original photo
|
||||||
{
|
{
|
||||||
if ($obj['photo_vignette'])
|
if ($obj['photo_vignette'])
|
||||||
{
|
{
|
||||||
|
|||||||
@ -234,7 +234,7 @@ class pdf_standard_recruitmentjobposition extends ModelePDFRecruitmentJobPositio
|
|||||||
|
|
||||||
foreach ($objphoto->liste_photos($dir, 1) as $key => $obj)
|
foreach ($objphoto->liste_photos($dir, 1) as $key => $obj)
|
||||||
{
|
{
|
||||||
if (empty($conf->global->CAT_HIGH_QUALITY_IMAGES)) // If CAT_HIGH_QUALITY_IMAGES not defined, we use thumb if defined and then original photo
|
if (!getDolGlobalInt('CAT_HIGH_QUALITY_IMAGES')) // If CAT_HIGH_QUALITY_IMAGES not defined, we use thumb if defined and then original photo
|
||||||
{
|
{
|
||||||
if ($obj['photo_vignette'])
|
if ($obj['photo_vignette'])
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user