diff --git a/htdocs/core/class/commondocgenerator.class.php b/htdocs/core/class/commondocgenerator.class.php index 439c7147a8b..d852c1391a1 100644 --- a/htdocs/core/class/commondocgenerator.class.php +++ b/htdocs/core/class/commondocgenerator.class.php @@ -302,7 +302,7 @@ abstract class CommonDocGenerator public function get_substitutionarray_thirdparty($object, $outputlangs, $array_key = 'company') { // phpcs:enable - global $conf, $extrafields; + global $extrafields; if (empty($object->country) && !empty($object->country_code)) { $object->country = $outputlangs->transnoentitiesnoconv("Country".$object->country_code); diff --git a/htdocs/core/class/commonnumrefgenerator.class.php b/htdocs/core/class/commonnumrefgenerator.class.php index 9da8651cac8..8b57cf9c455 100644 --- a/htdocs/core/class/commonnumrefgenerator.class.php +++ b/htdocs/core/class/commonnumrefgenerator.class.php @@ -88,9 +88,10 @@ abstract class CommonNumRefGenerator /** * Returns the default description of the numbering template * - * @return string Descriptive text + * @param Translate $langs Language + * @return string Descriptive text */ - public function info() + public function info($langs) { global $langs; return $langs->trans("NoDescription");