Clean code

This commit is contained in:
Laurent Destailleur
2023-12-27 12:12:20 +01:00
parent 89686e74dc
commit b28ae5d8d3
115 changed files with 238 additions and 240 deletions

View File

@@ -619,7 +619,7 @@ class DolibarrModules // Can not be abstract, because we need to instantiate it
global $langs;
$langs->load("admin");
if ($langs->transnoentitiesnoconv("Module".$this->numero."Name") != ("Module".$this->numero."Name")) {
if ($langs->transnoentitiesnoconv("Module".$this->numero."Name") != "Module".$this->numero."Name") {
// If module name translation exists
return $langs->transnoentitiesnoconv("Module".$this->numero."Name");
} else {
@@ -632,7 +632,7 @@ class DolibarrModules // Can not be abstract, because we need to instantiate it
}
}
if ($langs->trans("Module".$this->name."Name") != ("Module".$this->name."Name")) {
if ($langs->trans("Module".$this->name."Name") != "Module".$this->name."Name") {
// If module name translation exists
return $langs->transnoentitiesnoconv("Module".$this->name."Name");
}
@@ -653,7 +653,7 @@ class DolibarrModules // Can not be abstract, because we need to instantiate it
global $langs;
$langs->load("admin");
if ($langs->transnoentitiesnoconv("Module".$this->numero."Desc") != ("Module".$this->numero."Desc")) {
if ($langs->transnoentitiesnoconv("Module".$this->numero."Desc") != "Module".$this->numero."Desc") {
// If module description translation exists
return $langs->transnoentitiesnoconv("Module".$this->numero."Desc");
} else {
@@ -666,7 +666,7 @@ class DolibarrModules // Can not be abstract, because we need to instantiate it
}
}
if ($langs->transnoentitiesnoconv("Module".$this->name."Desc") != ("Module".$this->name."Desc")) {
if ($langs->transnoentitiesnoconv("Module".$this->name."Desc") != "Module".$this->name."Desc") {
// If module name translation exists
return $langs->trans("Module".$this->name."Desc");
}