2
0
forked from Wavyzz/dolibarr

Clean code with rector 2

This commit is contained in:
Laurent Destailleur
2024-01-05 04:18:53 +01:00
parent c3fb26086f
commit 4501872f17
305 changed files with 731 additions and 740 deletions

View File

@@ -170,7 +170,7 @@ class Reception extends CommonObject
$mybool = false;
$file = getDolGlobalString('RECEPTION_ADDON_NUMBER') . ".php";
$classname = $conf->global->RECEPTION_ADDON_NUMBER;
$classname = getDolGlobalString('RECEPTION_ADDON_NUMBER');
// Include file with class
$dirmodels = array_merge(array('/'), (array) $conf->modules_parts['models']);
@@ -2051,7 +2051,7 @@ class Reception extends CommonObject
if ($this->model_pdf) {
$modele = $this->model_pdf;
} elseif (getDolGlobalString('RECEPTION_ADDON_PDF')) {
$modele = $conf->global->RECEPTION_ADDON_PDF;
$modele = getDolGlobalString('RECEPTION_ADDON_PDF');
}
}