From 6d63f464bb1cf9f2ed1e6cdafbf5b9b21132caea Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 9 Aug 2023 18:18:20 +0200 Subject: [PATCH] Fix php inherit --- htdocs/core/class/commondocgenerator.class.php | 2 +- htdocs/core/class/commonnumrefgenerator.class.php | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) 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");