Fix php inherit

This commit is contained in:
Laurent Destailleur 2023-08-09 18:18:20 +02:00
parent 08e428b46d
commit 6d63f464bb
2 changed files with 4 additions and 3 deletions

View File

@ -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);

View File

@ -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");