diff --git a/htdocs/admin/bom.php b/htdocs/admin/bom.php index 57b4b5aad06..994db340687 100644 --- a/htdocs/admin/bom.php +++ b/htdocs/admin/bom.php @@ -219,7 +219,7 @@ foreach ($dirmodels as $reldir) { if ($module->isEnabled()) { print ''.$module->name."\n"; - print $module->info(); + print $module->info($langs); print ''; // Show example of numbering module diff --git a/htdocs/admin/chequereceipts.php b/htdocs/admin/chequereceipts.php index 77994debadb..98d2c80579c 100644 --- a/htdocs/admin/chequereceipts.php +++ b/htdocs/admin/chequereceipts.php @@ -164,7 +164,7 @@ foreach ($dirmodels as $reldir) { print (empty($module->name) ? $name : $module->name); print "\n"; - print $module->info(); + print $module->info($langs); print ''; diff --git a/htdocs/admin/commande.php b/htdocs/admin/commande.php index 93db0398687..fba421f6ccb 100644 --- a/htdocs/admin/commande.php +++ b/htdocs/admin/commande.php @@ -303,7 +303,7 @@ foreach ($dirmodels as $reldir) { if ($module->isEnabled()) { print ''.$module->name."\n"; - print $module->info(); + print $module->info($langs); print ''; // Show example of numbering model diff --git a/htdocs/admin/contract.php b/htdocs/admin/contract.php index 919a32b4c0e..d40b4d7b61f 100644 --- a/htdocs/admin/contract.php +++ b/htdocs/admin/contract.php @@ -254,7 +254,7 @@ foreach ($dirmodels as $reldir) { if ($module->isEnabled()) { print ''.$module->nom."\n"; - print $module->info(); + print $module->info($langs); print ''; // Show example of numbering model diff --git a/htdocs/admin/delivery.php b/htdocs/admin/delivery.php index a901b0790b5..ff3f54ff4b0 100644 --- a/htdocs/admin/delivery.php +++ b/htdocs/admin/delivery.php @@ -266,7 +266,7 @@ if (!empty($conf->global->MAIN_SUBMODULE_DELIVERY)) { } print ''.$module->name."\n"; - print $module->info(); + print $module->info($langs); print ''; // Show example of numbering module diff --git a/htdocs/admin/eventorganization.php b/htdocs/admin/eventorganization.php index 2ffb966828b..41d5d56162b 100644 --- a/htdocs/admin/eventorganization.php +++ b/htdocs/admin/eventorganization.php @@ -437,7 +437,7 @@ foreach ($myTmpObjects as $myTmpObjectKey => $myTmpObjectArray) { dol_include_once('/'.$moduledir.'/class/'.strtolower($myTmpObjectKey).'.class.php'); print ''.$module->name."\n"; - print $module->info(); + print $module->info($langs); print ''; // Show example of numbering model diff --git a/htdocs/admin/expedition.php b/htdocs/admin/expedition.php index 1db6a9cc9d6..31ed39baab3 100644 --- a/htdocs/admin/expedition.php +++ b/htdocs/admin/expedition.php @@ -212,7 +212,7 @@ foreach ($dirmodels as $reldir) { print ''.$module->name."\n"; print ''; - print $module->info(); + print $module->info($langs); print ''; // Show example of numbering module diff --git a/htdocs/admin/expensereport.php b/htdocs/admin/expensereport.php index 25bef9fde22..288c717c28e 100644 --- a/htdocs/admin/expensereport.php +++ b/htdocs/admin/expensereport.php @@ -232,7 +232,7 @@ foreach ($dirmodels as $reldir) { if ($module->isEnabled()) { print ''.$module->nom."\n"; - print $module->info(); + print $module->info($langs); print ''; // Show example of numbering model diff --git a/htdocs/admin/facture.php b/htdocs/admin/facture.php index caf4b2e8947..1dbd4cee9b1 100644 --- a/htdocs/admin/facture.php +++ b/htdocs/admin/facture.php @@ -342,7 +342,7 @@ foreach ($dirmodels as $reldir) { echo preg_replace('/\-.*$/', '', preg_replace('/mod_facture_/', '', preg_replace('/\.php$/', '', $file))); print "\n"; - print $module->info(); + print $module->info($langs); print ''; diff --git a/htdocs/admin/fichinter.php b/htdocs/admin/fichinter.php index 2e331b3cc80..3df2f7b8c52 100644 --- a/htdocs/admin/fichinter.php +++ b/htdocs/admin/fichinter.php @@ -303,7 +303,7 @@ foreach ($dirmodels as $reldir) { print ''.$module->nom."\n"; - print $module->info(); + print $module->info($langs); print ''; // Show example of numbering model diff --git a/htdocs/admin/holiday.php b/htdocs/admin/holiday.php index b85e257c69e..3b6149f3745 100644 --- a/htdocs/admin/holiday.php +++ b/htdocs/admin/holiday.php @@ -213,7 +213,7 @@ foreach ($dirmodels as $reldir) { if ($module->isEnabled()) { print ''.$module->nom."\n"; - print $module->info(); + print $module->info($langs); print ''; // Show example of numbering model diff --git a/htdocs/admin/hrm.php b/htdocs/admin/hrm.php index b823e7717c1..06cab9b0249 100644 --- a/htdocs/admin/hrm.php +++ b/htdocs/admin/hrm.php @@ -259,7 +259,7 @@ foreach ($myTmpObjects as $myTmpObjectKey => $myTmpObjectArray) { dol_include_once('/'.$moduledir.'/class/'.strtolower($myTmpObjectKey).'.class.php'); print ''.$module->name."\n"; - print $module->info(); + print $module->info($langs); print ''; // Show example of numbering model diff --git a/htdocs/admin/knowledgemanagement.php b/htdocs/admin/knowledgemanagement.php index eab20607a21..3cccf92a781 100644 --- a/htdocs/admin/knowledgemanagement.php +++ b/htdocs/admin/knowledgemanagement.php @@ -385,7 +385,7 @@ foreach ($myTmpObjects as $myTmpObjectKey => $myTmpObjectArray) { dol_include_once('/'.$moduledir.'/class/'.strtolower($myTmpObjectKey).'.class.php'); print ''.$module->name."\n"; - print $module->info(); + print $module->info($langs); print ''; // Show example of numbering model diff --git a/htdocs/admin/mrp.php b/htdocs/admin/mrp.php index e24abdbfa94..67f48a6d075 100644 --- a/htdocs/admin/mrp.php +++ b/htdocs/admin/mrp.php @@ -218,7 +218,7 @@ foreach ($dirmodels as $reldir) { if ($module->isEnabled()) { print ''.$module->name."\n"; - print $module->info(); + print $module->info($langs); print ''; // Show example of numbering model diff --git a/htdocs/admin/payment.php b/htdocs/admin/payment.php index 5e06ba4011f..42b33307dd1 100644 --- a/htdocs/admin/payment.php +++ b/htdocs/admin/payment.php @@ -168,7 +168,7 @@ foreach ($dirmodels as $reldir) { echo preg_replace('/\-.*$/', '', preg_replace('/mod_payment_/', '', preg_replace('/\.php$/', '', $file))); print "\n"; - print $module->info(); + print $module->info($langs); print ''; diff --git a/htdocs/admin/propal.php b/htdocs/admin/propal.php index 10044e33b5b..73b3861bbf6 100644 --- a/htdocs/admin/propal.php +++ b/htdocs/admin/propal.php @@ -292,7 +292,7 @@ foreach ($dirmodels as $reldir) { if ($module->isEnabled()) { print ''.$module->nom."\n"; - print $module->info(); + print $module->info($langs); print ''; // Show example of numbering module diff --git a/htdocs/admin/reception_setup.php b/htdocs/admin/reception_setup.php index 32f6c5b226e..a44ea8fa6da 100644 --- a/htdocs/admin/reception_setup.php +++ b/htdocs/admin/reception_setup.php @@ -218,7 +218,7 @@ foreach ($dirmodels as $reldir) { print ''.$module->nom."\n"; print ''; - print $module->info(); + print $module->info($langs); print ''; // Show example of numbering module diff --git a/htdocs/admin/stocktransfer.php b/htdocs/admin/stocktransfer.php index c62e286adfd..11a5cc37b9e 100644 --- a/htdocs/admin/stocktransfer.php +++ b/htdocs/admin/stocktransfer.php @@ -272,7 +272,7 @@ foreach ($myTmpObjects as $myTmpObjectKey => $myTmpObjectArray) { dol_include_once('/'.$moduledir.'/class/'.strtolower($myTmpObjectKey).'.class.php'); print ''.$module->name."\n"; - print $module->info(); + print $module->info($langs); print ''; // Show example of numbering model diff --git a/htdocs/admin/supplier_invoice.php b/htdocs/admin/supplier_invoice.php index 99bbb6d9cb1..c80640b2fcc 100644 --- a/htdocs/admin/supplier_invoice.php +++ b/htdocs/admin/supplier_invoice.php @@ -246,7 +246,7 @@ foreach ($dirmodels as $reldir) { print ''.$module->nom."\n"; - print $module->info(); + print $module->info($langs); print ''; // Show example of numbering module diff --git a/htdocs/admin/supplier_order.php b/htdocs/admin/supplier_order.php index 171ad4035a9..17df663cda8 100644 --- a/htdocs/admin/supplier_order.php +++ b/htdocs/admin/supplier_order.php @@ -262,7 +262,7 @@ foreach ($dirmodels as $reldir) { print ''.$module->nom."\n"; - print $module->info(); + print $module->info($langs); print ''; // Show example of numbering module diff --git a/htdocs/admin/supplier_payment.php b/htdocs/admin/supplier_payment.php index ac00e4846ac..4a830373393 100644 --- a/htdocs/admin/supplier_payment.php +++ b/htdocs/admin/supplier_payment.php @@ -241,7 +241,7 @@ foreach ($dirmodels as $reldir) { echo preg_replace('/\-.*$/', '', preg_replace('/mod_supplier_payment_/', '', preg_replace('/\.php$/', '', $file))); print "\n"; - print $module->info(); + print $module->info($langs); print ''; diff --git a/htdocs/admin/supplier_proposal.php b/htdocs/admin/supplier_proposal.php index 62be111449d..92ceb356668 100644 --- a/htdocs/admin/supplier_proposal.php +++ b/htdocs/admin/supplier_proposal.php @@ -271,7 +271,7 @@ foreach ($dirmodels as $reldir) { if ($module->isEnabled()) { print ''.$module->nom."\n"; - print $module->info(); + print $module->info($langs); print ''; // Show example of numbering module diff --git a/htdocs/admin/ticket.php b/htdocs/admin/ticket.php index 6a6201642ee..0d54c63af0e 100644 --- a/htdocs/admin/ticket.php +++ b/htdocs/admin/ticket.php @@ -298,7 +298,7 @@ foreach ($dirmodels as $reldir) { if ($module->isEnabled()) { print ''.$module->name."\n"; - print $module->info(); + print $module->info($langs); print ''; // Show example of numbering model diff --git a/htdocs/admin/webhook.php b/htdocs/admin/webhook.php index 52b11a3f171..5495a7633a2 100644 --- a/htdocs/admin/webhook.php +++ b/htdocs/admin/webhook.php @@ -432,7 +432,7 @@ foreach ($myTmpObjects as $myTmpObjectKey => $myTmpObjectArray) { dol_include_once('/'.$moduledir.'/class/'.strtolower($myTmpObjectKey).'.class.php'); print ''.$module->name."\n"; - print $module->info(); + print $module->info($langs); print ''; // Show example of numbering model diff --git a/htdocs/admin/workstation.php b/htdocs/admin/workstation.php index 764cbaa1b00..c9c1a8db983 100644 --- a/htdocs/admin/workstation.php +++ b/htdocs/admin/workstation.php @@ -272,7 +272,7 @@ foreach ($myTmpObjects as $myTmpObjectKey => $myTmpObjectArray) { dol_include_once('/'.$moduledir.'/class/'.strtolower($myTmpObjectKey).'.class.php'); print ''.$module->name."\n"; - print $module->info(); + print $module->info($langs); print ''; // Show example of numbering model diff --git a/htdocs/asset/admin/setup.php b/htdocs/asset/admin/setup.php index 933c6d20634..3c3c05caf90 100644 --- a/htdocs/asset/admin/setup.php +++ b/htdocs/asset/admin/setup.php @@ -247,7 +247,7 @@ foreach ($myTmpObjects as $myTmpObjectKey => $myTmpObjectArray) { dol_include_once('/'.$moduledir.'/class/'.strtolower($myTmpObjectKey).'.class.php'); print ''.$module->name."\n"; - print $module->info(); + print $module->info($langs); print ''; // Show example of numbering model diff --git a/htdocs/bookcal/admin/setup.php b/htdocs/bookcal/admin/setup.php index ed9af6c6692..39f99bd589c 100644 --- a/htdocs/bookcal/admin/setup.php +++ b/htdocs/bookcal/admin/setup.php @@ -314,7 +314,7 @@ foreach ($myTmpObjects as $myTmpObjectKey => $myTmpObjectArray) { dol_include_once('/'.$moduledir.'/class/'.strtolower($myTmpObjectKey).'.class.php'); print ''.$module->name."\n"; - print $module->info(); + print $module->info($langs); print ''; // Show example of numbering model diff --git a/htdocs/core/modules/asset/mod_asset_advanced.php b/htdocs/core/modules/asset/mod_asset_advanced.php index 4c27609ff59..369cca5db68 100644 --- a/htdocs/core/modules/asset/mod_asset_advanced.php +++ b/htdocs/core/modules/asset/mod_asset_advanced.php @@ -53,11 +53,12 @@ class mod_asset_advanced extends ModeleNumRefAsset /** * Returns the description of the numbering model * - * @return string Descriptive text + * @param Translate $langs Lang object to use for output + * @return string Descriptive text */ - public function info() + public function info($langs) { - global $conf, $langs, $db; + global $langs, $db; $langs->load("bills"); diff --git a/htdocs/core/modules/asset/mod_asset_standard.php b/htdocs/core/modules/asset/mod_asset_standard.php index 4fbf889fc9b..5269dd2c24c 100644 --- a/htdocs/core/modules/asset/mod_asset_standard.php +++ b/htdocs/core/modules/asset/mod_asset_standard.php @@ -53,9 +53,10 @@ class mod_asset_standard extends ModeleNumRefAsset /** * Return description of numbering module * - * @return string Text with description + * @param Translate $langs Lang object to use for output + * @return string Descriptive text */ - public function info() + public function info($langs) { global $langs; return $langs->trans("SimpleNumRefModelDesc", $this->prefix); diff --git a/htdocs/core/modules/barcode/doc/phpbarcode.modules.php b/htdocs/core/modules/barcode/doc/phpbarcode.modules.php index 7befa160489..b38b660faf6 100644 --- a/htdocs/core/modules/barcode/doc/phpbarcode.modules.php +++ b/htdocs/core/modules/barcode/doc/phpbarcode.modules.php @@ -58,9 +58,10 @@ class modPhpbarcode extends ModeleBarCode /** * Return description * - * @return string Descriptive text + * @param Translate $langs Lang object to use for output + * @return string Descriptive text */ - public function info() + public function info($langs) { global $langs; diff --git a/htdocs/core/modules/barcode/doc/tcpdfbarcode.modules.php b/htdocs/core/modules/barcode/doc/tcpdfbarcode.modules.php index 3f0946c0d99..4cd98150c8a 100644 --- a/htdocs/core/modules/barcode/doc/tcpdfbarcode.modules.php +++ b/htdocs/core/modules/barcode/doc/tcpdfbarcode.modules.php @@ -47,12 +47,11 @@ class modTcpdfbarcode extends ModeleBarCode /** * Return description of numbering model * - * @return string Text with description + * @param Translate $langs Lang object to use for output + * @return string Descriptive text */ - public function info() + public function info($langs) { - global $langs; - return 'TCPDF-barcode'; } diff --git a/htdocs/core/modules/bom/mod_bom_advanced.php b/htdocs/core/modules/bom/mod_bom_advanced.php index 28e326ef824..a1ffc9ff780 100644 --- a/htdocs/core/modules/bom/mod_bom_advanced.php +++ b/htdocs/core/modules/bom/mod_bom_advanced.php @@ -54,11 +54,12 @@ class mod_bom_advanced extends ModeleNumRefBoms /** * Returns the description of the numbering model * - * @return string Descriptive text + * @param Translate $langs Lang object to use for output + * @return string Descriptive text */ - public function info() + public function info($langs) { - global $conf, $langs, $db; + global $langs, $db; $langs->load("bills"); diff --git a/htdocs/core/modules/bom/mod_bom_standard.php b/htdocs/core/modules/bom/mod_bom_standard.php index 51c57710fc1..49c1bec0948 100644 --- a/htdocs/core/modules/bom/mod_bom_standard.php +++ b/htdocs/core/modules/bom/mod_bom_standard.php @@ -51,9 +51,10 @@ class mod_bom_standard extends ModeleNumRefBoms /** * Return description of numbering module * - * @return string Text with description + * @param Translate $langs Lang object to use for output + * @return string Descriptive text */ - public function info() + public function info($langs) { global $langs; return $langs->trans("SimpleNumRefModelDesc", $this->prefix); diff --git a/htdocs/core/modules/bookcal/mod_booking_advanced.php b/htdocs/core/modules/bookcal/mod_booking_advanced.php index 51b60e1fd7a..d34d08548f8 100644 --- a/htdocs/core/modules/bookcal/mod_booking_advanced.php +++ b/htdocs/core/modules/bookcal/mod_booking_advanced.php @@ -54,11 +54,12 @@ class mod_booking_advanced extends ModeleNumRefBooking /** * Returns the description of the numbering model * - * @return string Descriptive text + * @param Translate $langs Lang object to use for output + * @return string Descriptive text */ - public function info() + public function info($langs) { - global $conf, $langs, $db; + global $langs, $db; $langs->load("bills"); diff --git a/htdocs/core/modules/bookcal/mod_booking_standard.php b/htdocs/core/modules/bookcal/mod_booking_standard.php index eff6cb23cf6..ba077860ddf 100644 --- a/htdocs/core/modules/bookcal/mod_booking_standard.php +++ b/htdocs/core/modules/bookcal/mod_booking_standard.php @@ -52,9 +52,10 @@ class mod_booking_standard extends ModeleNumRefBooking /** * Return description of numbering module * - * @return string Text with description + * @param Translate $langs Lang object to use for output + * @return string Descriptive text */ - public function info() + public function info($langs) { global $langs; return $langs->trans("SimpleNumRefModelDesc", $this->prefix); diff --git a/htdocs/core/modules/cheque/mod_chequereceipt_mint.php b/htdocs/core/modules/cheque/mod_chequereceipt_mint.php index 7396034201a..034fa63437e 100644 --- a/htdocs/core/modules/cheque/mod_chequereceipt_mint.php +++ b/htdocs/core/modules/cheque/mod_chequereceipt_mint.php @@ -48,9 +48,10 @@ class mod_chequereceipt_mint extends ModeleNumRefChequeReceipts /** * Return description of numbering module * - * @return string Text with description + * @param Translate $langs Lang object to use for output + * @return string Descriptive text */ - public function info() + public function info($langs) { global $langs; return $langs->trans("SimpleNumRefModelDesc", $this->prefix); diff --git a/htdocs/core/modules/cheque/mod_chequereceipt_thyme.php b/htdocs/core/modules/cheque/mod_chequereceipt_thyme.php index 5534bf38698..79acb4b56a7 100644 --- a/htdocs/core/modules/cheque/mod_chequereceipt_thyme.php +++ b/htdocs/core/modules/cheque/mod_chequereceipt_thyme.php @@ -48,9 +48,10 @@ class mod_chequereceipt_thyme extends ModeleNumRefChequeReceipts /** * Returns the description of the numbering model * - * @return string Descriptive text + * @param Translate $langs Lang object to use for output + * @return string Descriptive text */ - public function info() + public function info($langs) { global $conf, $langs, $db; diff --git a/htdocs/core/modules/commande/mod_commande_marbre.php b/htdocs/core/modules/commande/mod_commande_marbre.php index 1a995e473a8..ddb1b689ddb 100644 --- a/htdocs/core/modules/commande/mod_commande_marbre.php +++ b/htdocs/core/modules/commande/mod_commande_marbre.php @@ -63,9 +63,10 @@ class mod_commande_marbre extends ModeleNumRefCommandes /** * Return description of numbering module * - * @return string Text with description + * @param Translate $langs Lang object to use for output + * @return string Descriptive text */ - public function info() + public function info($langs) { global $langs; return $langs->trans("SimpleNumRefModelDesc", $this->prefix); diff --git a/htdocs/core/modules/commande/mod_commande_saphir.php b/htdocs/core/modules/commande/mod_commande_saphir.php index b62124f7652..641081782cd 100644 --- a/htdocs/core/modules/commande/mod_commande_saphir.php +++ b/htdocs/core/modules/commande/mod_commande_saphir.php @@ -54,11 +54,12 @@ class mod_commande_saphir extends ModeleNumRefCommandes /** * Returns the description of the numbering model * - * @return string Descriptive text + * @param Translate $langs Lang object to use for output + * @return string Descriptive text */ - public function info() + public function info($langs) { - global $conf, $langs, $db; + global $langs, $db; $langs->load("bills"); diff --git a/htdocs/core/modules/contract/mod_contract_magre.php b/htdocs/core/modules/contract/mod_contract_magre.php index dca808ac794..fd476eb2bc5 100644 --- a/htdocs/core/modules/contract/mod_contract_magre.php +++ b/htdocs/core/modules/contract/mod_contract_magre.php @@ -61,11 +61,12 @@ class mod_contract_magre extends ModelNumRefContracts /** * Return default description of numbering model * - * @return string text description + * @param Translate $langs Lang object to use for output + * @return string Descriptive text */ - public function info() + public function info($langs) { - global $conf, $langs, $db; + global $langs, $db; $langs->load("bills"); diff --git a/htdocs/core/modules/contract/mod_contract_olive.php b/htdocs/core/modules/contract/mod_contract_olive.php index 9d9551bfa96..4051ac7c779 100644 --- a/htdocs/core/modules/contract/mod_contract_olive.php +++ b/htdocs/core/modules/contract/mod_contract_olive.php @@ -67,9 +67,10 @@ class mod_contract_olive extends ModelNumRefContracts /** * Return description of module * - * @return string Description of module + * @param Translate $langs Lang object to use for output + * @return string Descriptive text */ - public function info() + public function info($langs) { global $langs; diff --git a/htdocs/core/modules/contract/mod_contract_serpis.php b/htdocs/core/modules/contract/mod_contract_serpis.php index 6a1368eb25a..37b357ddc63 100644 --- a/htdocs/core/modules/contract/mod_contract_serpis.php +++ b/htdocs/core/modules/contract/mod_contract_serpis.php @@ -62,9 +62,10 @@ class mod_contract_serpis extends ModelNumRefContracts /** * Return default description of numbering model * - * @return string text description + * @param Translate $langs Lang object to use for output + * @return string Descriptive text */ - public function info() + public function info($langs) { global $langs; return $langs->trans("SimpleNumRefModelDesc", $this->prefix); diff --git a/htdocs/core/modules/delivery/mod_delivery_jade.php b/htdocs/core/modules/delivery/mod_delivery_jade.php index 7e316a927b5..1d5b7edda29 100644 --- a/htdocs/core/modules/delivery/mod_delivery_jade.php +++ b/htdocs/core/modules/delivery/mod_delivery_jade.php @@ -63,9 +63,10 @@ class mod_delivery_jade extends ModeleNumRefDeliveryOrder /** * Returns the description of the numbering model * - * @return string Descriptive text + * @param Translate $langs Lang object to use for output + * @return string Descriptive text */ - public function info() + public function info($langs) { global $langs; return $langs->trans("SimpleNumRefModelDesc", $this->prefix); diff --git a/htdocs/core/modules/delivery/mod_delivery_saphir.php b/htdocs/core/modules/delivery/mod_delivery_saphir.php index 89cdafa9fe7..7faddbd2251 100644 --- a/htdocs/core/modules/delivery/mod_delivery_saphir.php +++ b/htdocs/core/modules/delivery/mod_delivery_saphir.php @@ -58,11 +58,12 @@ class mod_delivery_saphir extends ModeleNumRefDeliveryOrder /** * Returns the description of the numbering model * - * @return string Descriptive text + * @param Translate $langs Lang object to use for output + * @return string Descriptive text */ - public function info() + public function info($langs) { - global $conf, $langs, $db; + global $langs, $db; $langs->load("bills"); diff --git a/htdocs/core/modules/expedition/mod_expedition_ribera.php b/htdocs/core/modules/expedition/mod_expedition_ribera.php index aae32f0f459..eed9b96ffef 100644 --- a/htdocs/core/modules/expedition/mod_expedition_ribera.php +++ b/htdocs/core/modules/expedition/mod_expedition_ribera.php @@ -56,11 +56,12 @@ class mod_expedition_ribera extends ModelNumRefExpedition /** * Return default description of numbering model * - * @return string text description + * @param Translate $langs Lang object to use for output + * @return string Descriptive text */ - public function info() + public function info($langs) { - global $conf, $langs, $db; + global $langs, $db; $langs->load("bills"); diff --git a/htdocs/core/modules/expedition/mod_expedition_safor.php b/htdocs/core/modules/expedition/mod_expedition_safor.php index c799fb4406f..c01da143297 100644 --- a/htdocs/core/modules/expedition/mod_expedition_safor.php +++ b/htdocs/core/modules/expedition/mod_expedition_safor.php @@ -57,9 +57,10 @@ class mod_expedition_safor extends ModelNumRefExpedition /** * Return default description of numbering model * - * @return string text description + * @param Translate $langs Lang object to use for output + * @return string Descriptive text */ - public function info() + public function info($langs) { global $langs; return $langs->trans("SimpleNumRefModelDesc", $this->prefix); diff --git a/htdocs/core/modules/expensereport/mod_expensereport_jade.php b/htdocs/core/modules/expensereport/mod_expensereport_jade.php index 20bee065fe1..1a5e05a03fa 100644 --- a/htdocs/core/modules/expensereport/mod_expensereport_jade.php +++ b/htdocs/core/modules/expensereport/mod_expensereport_jade.php @@ -57,9 +57,10 @@ class mod_expensereport_jade extends ModeleNumRefExpenseReport /** * Return description of numbering model * - * @return string Text with description + * @param Translate $langs Lang object to use for output + * @return string Descriptive text */ - public function info() + public function info($langs) { global $langs; return $langs->trans("SimpleNumRefModelDesc", $this->prefix); diff --git a/htdocs/core/modules/expensereport/mod_expensereport_sand.php b/htdocs/core/modules/expensereport/mod_expensereport_sand.php index 920861f2b3e..669b51e22ed 100644 --- a/htdocs/core/modules/expensereport/mod_expensereport_sand.php +++ b/htdocs/core/modules/expensereport/mod_expensereport_sand.php @@ -57,9 +57,10 @@ class mod_expensereport_sand extends ModeleNumRefExpenseReport /** * Returns the description of the numbering model * - * @return string Descriptive text + * @param Translate $langs Lang object to use for output + * @return string Descriptive text */ - public function info() + public function info($langs) { global $db, $conf, $langs; diff --git a/htdocs/core/modules/facture/mod_facture_mars.php b/htdocs/core/modules/facture/mod_facture_mars.php index 17206aa9e7e..fe801d59ef2 100644 --- a/htdocs/core/modules/facture/mod_facture_mars.php +++ b/htdocs/core/modules/facture/mod_facture_mars.php @@ -72,9 +72,10 @@ class mod_facture_mars extends ModeleNumRefFactures /** * Returns the description of the numbering model * - * @return string Descriptive text + * @param Translate $langs Lang object to use for output + * @return string Descriptive text */ - public function info() + public function info($langs) { global $langs; $langs->load("bills"); diff --git a/htdocs/core/modules/facture/mod_facture_mercure.php b/htdocs/core/modules/facture/mod_facture_mercure.php index 5bf884859c0..b4041eb7553 100644 --- a/htdocs/core/modules/facture/mod_facture_mercure.php +++ b/htdocs/core/modules/facture/mod_facture_mercure.php @@ -49,9 +49,10 @@ class mod_facture_mercure extends ModeleNumRefFactures /** * Returns the description of the numbering model * - * @return string Descriptive text + * @param Translate $langs Lang object to use for output + * @return string Descriptive text */ - public function info() + public function info($langs) { global $db, $langs; diff --git a/htdocs/core/modules/facture/mod_facture_terre.php b/htdocs/core/modules/facture/mod_facture_terre.php index fccaf5249ed..67a0d0d6662 100644 --- a/htdocs/core/modules/facture/mod_facture_terre.php +++ b/htdocs/core/modules/facture/mod_facture_terre.php @@ -88,9 +88,10 @@ class mod_facture_terre extends ModeleNumRefFactures /** * Returns the description of the numbering model * - * @return string Descriptive text + * @param Translate $langs Lang object to use for output + * @return string Descriptive text */ - public function info() + public function info($langs) { global $langs; $langs->load("bills"); diff --git a/htdocs/core/modules/fichinter/mod_arctic.php b/htdocs/core/modules/fichinter/mod_arctic.php index d1f313e1bd5..a2d7def3135 100644 --- a/htdocs/core/modules/fichinter/mod_arctic.php +++ b/htdocs/core/modules/fichinter/mod_arctic.php @@ -59,11 +59,12 @@ class mod_arctic extends ModeleNumRefFicheinter /** * Returns the description of the numbering model * - * @return string Descriptive text + * @param Translate $langs Lang object to use for output + * @return string Descriptive text */ - public function info() + public function info($langs) { - global $db, $conf, $langs; + global $db, $langs; $langs->load("bills"); diff --git a/htdocs/core/modules/fichinter/mod_pacific.php b/htdocs/core/modules/fichinter/mod_pacific.php index 5163ef91ba8..85411d143b9 100644 --- a/htdocs/core/modules/fichinter/mod_pacific.php +++ b/htdocs/core/modules/fichinter/mod_pacific.php @@ -59,9 +59,10 @@ class mod_pacific extends ModeleNumRefFicheinter /** * Return description of numbering module * - * @return string Text with description + * @param Translate $langs Lang object to use for output + * @return string Descriptive text */ - public function info() + public function info($langs) { global $langs; return $langs->trans("SimpleNumRefModelDesc", $this->prefix); diff --git a/htdocs/core/modules/holiday/mod_holiday_immaculate.php b/htdocs/core/modules/holiday/mod_holiday_immaculate.php index ce780a0ba58..07e60ede935 100644 --- a/htdocs/core/modules/holiday/mod_holiday_immaculate.php +++ b/htdocs/core/modules/holiday/mod_holiday_immaculate.php @@ -61,11 +61,12 @@ class mod_holiday_immaculate extends ModelNumRefHolidays /** * Return default description of numbering model * - * @return string text description + * @param Translate $langs Lang object to use for output + * @return string Descriptive text */ - public function info() + public function info($langs) { - global $db, $conf, $langs; + global $db, $langs; $langs->load("bills"); diff --git a/htdocs/core/modules/holiday/mod_holiday_madonna.php b/htdocs/core/modules/holiday/mod_holiday_madonna.php index 20868789a62..110e27b755e 100644 --- a/htdocs/core/modules/holiday/mod_holiday_madonna.php +++ b/htdocs/core/modules/holiday/mod_holiday_madonna.php @@ -63,9 +63,10 @@ class mod_holiday_madonna extends ModelNumRefHolidays /** * Return default description of numbering model * - * @return string text description + * @param Translate $langs Lang object to use for output + * @return string Descriptive text */ - public function info() + public function info($langs) { global $langs; return $langs->trans("SimpleNumRefModelDesc", $this->prefix); diff --git a/htdocs/core/modules/hrm/mod_evaluation_advanced.php b/htdocs/core/modules/hrm/mod_evaluation_advanced.php index 7369032e165..8bf3b201de6 100644 --- a/htdocs/core/modules/hrm/mod_evaluation_advanced.php +++ b/htdocs/core/modules/hrm/mod_evaluation_advanced.php @@ -54,11 +54,12 @@ class mod_evaluation_advanced extends ModeleNumRefEvaluation /** * Returns the description of the numbering model * - * @return string Descriptive text + * @param Translate $langs Lang object to use for output + * @return string Descriptive text */ - public function info() + public function info($langs) { - global $conf, $langs, $db; + global $langs, $db; $langs->load("bills"); diff --git a/htdocs/core/modules/hrm/mod_evaluation_standard.php b/htdocs/core/modules/hrm/mod_evaluation_standard.php index b6b517b8fb9..17fab7a3bc0 100644 --- a/htdocs/core/modules/hrm/mod_evaluation_standard.php +++ b/htdocs/core/modules/hrm/mod_evaluation_standard.php @@ -52,9 +52,10 @@ class mod_evaluation_standard extends ModeleNumRefEvaluation /** * Return description of numbering module * - * @return string Text with description + * @param Translate $langs Lang object to use for output + * @return string Descriptive text */ - public function info() + public function info($langs) { global $langs; return $langs->trans("SimpleNumRefModelDesc", $this->prefix); diff --git a/htdocs/core/modules/member/doc/doc_generic_member_odt.class.php b/htdocs/core/modules/member/doc/doc_generic_member_odt.class.php index 2076e156bac..a62723219b0 100644 --- a/htdocs/core/modules/member/doc/doc_generic_member_odt.class.php +++ b/htdocs/core/modules/member/doc/doc_generic_member_odt.class.php @@ -101,7 +101,7 @@ class doc_generic_member_odt extends ModelePDFMember */ public function info($langs) { - global $conf, $langs; + global $langs; // Load translation files required by the page $langs->loadLangs(array('companies', 'errors')); diff --git a/htdocs/core/modules/member/mod_member_advanced.php b/htdocs/core/modules/member/mod_member_advanced.php index b90c664c2e9..221b55fa24e 100644 --- a/htdocs/core/modules/member/mod_member_advanced.php +++ b/htdocs/core/modules/member/mod_member_advanced.php @@ -62,9 +62,10 @@ class mod_member_advanced extends ModeleNumRefMembers /** * Return description of numbering module * - * @return string Text with description + * @param Translate $langs Lang object to use for output + * @return string Descriptive text */ - public function info() + public function info($langs) { global $langs; return $langs->trans("AdvancedNumRefModelDesc", $this->prefix); diff --git a/htdocs/core/modules/member/mod_member_simple.php b/htdocs/core/modules/member/mod_member_simple.php index 996d18a2b12..bc52459f79c 100644 --- a/htdocs/core/modules/member/mod_member_simple.php +++ b/htdocs/core/modules/member/mod_member_simple.php @@ -62,9 +62,10 @@ class mod_member_simple extends ModeleNumRefMembers /** * Return description of numbering module * - * @return string Text with description + * @param Translate $langs Lang object to use for output + * @return string Descriptive text */ - public function info() + public function info($langs) { global $langs; return $langs->trans("SimpleRefNumRefModelDesc"); diff --git a/htdocs/core/modules/mrp/mod_mo_advanced.php b/htdocs/core/modules/mrp/mod_mo_advanced.php index cd134537ea2..47cb69f1627 100644 --- a/htdocs/core/modules/mrp/mod_mo_advanced.php +++ b/htdocs/core/modules/mrp/mod_mo_advanced.php @@ -55,9 +55,10 @@ class mod_mo_advanced extends ModeleNumRefMos /** * Returns the description of the numbering model * - * @return string Descriptive text + * @param Translate $langs Lang object to use for output + * @return string Descriptive text */ - public function info() + public function info($langs) { global $conf, $langs, $db; diff --git a/htdocs/core/modules/mrp/mod_mo_standard.php b/htdocs/core/modules/mrp/mod_mo_standard.php index 3df1d1134f0..c27c36c8849 100644 --- a/htdocs/core/modules/mrp/mod_mo_standard.php +++ b/htdocs/core/modules/mrp/mod_mo_standard.php @@ -51,9 +51,10 @@ class mod_mo_standard extends ModeleNumRefMos /** * Return description of numbering module * - * @return string Text with description + * @param Translate $langs Lang object to use for output + * @return string Descriptive text */ - public function info() + public function info($langs) { global $langs; return $langs->trans("SimpleNumRefModelDesc", $this->prefix); diff --git a/htdocs/core/modules/payment/mod_payment_ant.php b/htdocs/core/modules/payment/mod_payment_ant.php index 6125053cbb4..0e689453a1e 100644 --- a/htdocs/core/modules/payment/mod_payment_ant.php +++ b/htdocs/core/modules/payment/mod_payment_ant.php @@ -57,9 +57,10 @@ class mod_payment_ant extends ModeleNumRefPayments /** * Returns the description of the numbering model * - * @return string Descriptive text + * @param Translate $langs Lang object to use for output + * @return string Descriptive text */ - public function info() + public function info($langs) { global $db, $langs; diff --git a/htdocs/core/modules/payment/mod_payment_cicada.php b/htdocs/core/modules/payment/mod_payment_cicada.php index c7cbe4f4079..466bb81ea09 100644 --- a/htdocs/core/modules/payment/mod_payment_cicada.php +++ b/htdocs/core/modules/payment/mod_payment_cicada.php @@ -58,9 +58,10 @@ class mod_payment_cicada extends ModeleNumRefPayments /** * Return description of numbering module * - * @return string Text with description + * @param Translate $langs Lang object to use for output + * @return string Descriptive text */ - public function info() + public function info($langs) { global $langs; return $langs->trans("SimpleNumRefModelDesc", $this->prefix); diff --git a/htdocs/core/modules/product_batch/mod_lot_advanced.php b/htdocs/core/modules/product_batch/mod_lot_advanced.php index 27cc509ea02..de173a93b8c 100644 --- a/htdocs/core/modules/product_batch/mod_lot_advanced.php +++ b/htdocs/core/modules/product_batch/mod_lot_advanced.php @@ -55,9 +55,10 @@ class mod_lot_advanced extends ModeleNumRefBatch /** * Returns the description of the numbering model * - * @return string Descriptive text + * @param Translate $langs Lang object to use for output + * @return string Descriptive text */ - public function info() + public function info($langs) { global $conf, $langs, $db; diff --git a/htdocs/core/modules/product_batch/mod_lot_free.php b/htdocs/core/modules/product_batch/mod_lot_free.php index 8d14a25374f..52308b3d893 100644 --- a/htdocs/core/modules/product_batch/mod_lot_free.php +++ b/htdocs/core/modules/product_batch/mod_lot_free.php @@ -83,9 +83,10 @@ class mod_lot_free extends ModeleNumRefBatch /** * Return description of module * - * @return string Description of module + * @param Translate $langs Lang object to use for output + * @return string Descriptive text */ - public function info() + public function info($langs) { global $langs; $langs->load("companies"); diff --git a/htdocs/core/modules/product_batch/mod_lot_standard.php b/htdocs/core/modules/product_batch/mod_lot_standard.php index 8ab716241fa..843aa1dd78b 100644 --- a/htdocs/core/modules/product_batch/mod_lot_standard.php +++ b/htdocs/core/modules/product_batch/mod_lot_standard.php @@ -52,9 +52,10 @@ class mod_lot_standard extends ModeleNumRefBatch /** * Return description of numbering module * - * @return string Text with description + * @param Translate $langs Lang object to use for output + * @return string Descriptive text */ - public function info() + public function info($langs) { global $langs; return $langs->trans("SimpleNumRefModelDesc", $this->prefix); diff --git a/htdocs/core/modules/product_batch/mod_sn_advanced.php b/htdocs/core/modules/product_batch/mod_sn_advanced.php index 91fc99a1363..8b61a475603 100644 --- a/htdocs/core/modules/product_batch/mod_sn_advanced.php +++ b/htdocs/core/modules/product_batch/mod_sn_advanced.php @@ -55,9 +55,10 @@ class mod_sn_advanced extends ModeleNumRefBatch /** * Returns the description of the numbering model * - * @return string Descriptive text + * @param Translate $langs Lang object to use for output + * @return string Descriptive text */ - public function info() + public function info($langs) { global $conf, $langs, $db; diff --git a/htdocs/core/modules/product_batch/mod_sn_free.php b/htdocs/core/modules/product_batch/mod_sn_free.php index 8ada51fb93b..bb0336a4aee 100644 --- a/htdocs/core/modules/product_batch/mod_sn_free.php +++ b/htdocs/core/modules/product_batch/mod_sn_free.php @@ -79,9 +79,10 @@ class mod_sn_free extends ModeleNumRefBatch /** * Return description of module * - * @return string Description of module + * @param Translate $langs Lang object to use for output + * @return string Descriptive text */ - public function info() + public function info($langs) { global $langs; $langs->load("companies"); diff --git a/htdocs/core/modules/product_batch/mod_sn_standard.php b/htdocs/core/modules/product_batch/mod_sn_standard.php index efd992f1715..e1fdb0febb8 100644 --- a/htdocs/core/modules/product_batch/mod_sn_standard.php +++ b/htdocs/core/modules/product_batch/mod_sn_standard.php @@ -52,9 +52,10 @@ class mod_sn_standard extends ModeleNumRefBatch /** * Return description of numbering module * - * @return string Text with description + * @param Translate $langs Lang object to use for output + * @return string Descriptive text */ - public function info() + public function info($langs) { global $langs; return $langs->trans("SimpleNumRefModelDesc", $this->prefix); diff --git a/htdocs/core/modules/project/mod_project_simple.php b/htdocs/core/modules/project/mod_project_simple.php index ff8b2906c58..959cc86adbe 100644 --- a/htdocs/core/modules/project/mod_project_simple.php +++ b/htdocs/core/modules/project/mod_project_simple.php @@ -60,9 +60,10 @@ class mod_project_simple extends ModeleNumRefProjects /** * Return description of numbering module * - * @return string Text with description + * @param Translate $langs Lang object to use for output + * @return string Descriptive text */ - public function info() + public function info($langs) { global $langs; return $langs->trans("SimpleNumRefModelDesc", $this->prefix); diff --git a/htdocs/core/modules/project/mod_project_universal.php b/htdocs/core/modules/project/mod_project_universal.php index 61b6962cefc..c75e3dcf385 100644 --- a/htdocs/core/modules/project/mod_project_universal.php +++ b/htdocs/core/modules/project/mod_project_universal.php @@ -62,11 +62,12 @@ class mod_project_universal extends ModeleNumRefProjects /** * Returns the description of the numbering model * - * @return string Descriptive text + * @param Translate $langs Lang object to use for output + * @return string Descriptive text */ - public function info() + public function info($langs) { - global $conf, $langs; + global $langs; // Load translation files required by the page $langs->loadLangs(array("projects", "admin")); diff --git a/htdocs/core/modules/project/task/mod_task_simple.php b/htdocs/core/modules/project/task/mod_task_simple.php index dc6e533f945..94bb215be1e 100644 --- a/htdocs/core/modules/project/task/mod_task_simple.php +++ b/htdocs/core/modules/project/task/mod_task_simple.php @@ -60,9 +60,10 @@ class mod_task_simple extends ModeleNumRefTask /** * Return description of numbering module * - * @return string Text with description + * @param Translate $langs Lang object to use for output + * @return string Descriptive text */ - public function info() + public function info($langs) { global $langs; return $langs->trans("SimpleNumRefModelDesc", $this->prefix); diff --git a/htdocs/core/modules/project/task/mod_task_universal.php b/htdocs/core/modules/project/task/mod_task_universal.php index 4084f3d9298..6d060f6534d 100644 --- a/htdocs/core/modules/project/task/mod_task_universal.php +++ b/htdocs/core/modules/project/task/mod_task_universal.php @@ -57,11 +57,12 @@ class mod_task_universal extends ModeleNumRefTask /** * Returns the description of the numbering model * - * @return string Descriptive text + * @param Translate $langs Lang object to use for output + * @return string Descriptive text */ - public function info() + public function info($langs) { - global $conf, $langs, $db; + global $langs, $db; // Load translation files required by the page $langs->loadLangs(array("projects", "admin")); diff --git a/htdocs/core/modules/propale/doc/doc_generic_proposal_odt.modules.php b/htdocs/core/modules/propale/doc/doc_generic_proposal_odt.modules.php index 734ebdc5137..f1b35a35e57 100644 --- a/htdocs/core/modules/propale/doc/doc_generic_proposal_odt.modules.php +++ b/htdocs/core/modules/propale/doc/doc_generic_proposal_odt.modules.php @@ -104,7 +104,7 @@ class doc_generic_proposal_odt extends ModelePDFPropales */ public function info($langs) { - global $conf, $langs; + global $langs; // Load translation files required by the page $langs->loadLangs(array("errors", "companies")); diff --git a/htdocs/core/modules/propale/mod_propale_marbre.php b/htdocs/core/modules/propale/mod_propale_marbre.php index dace28c097b..b9638dc904b 100644 --- a/htdocs/core/modules/propale/mod_propale_marbre.php +++ b/htdocs/core/modules/propale/mod_propale_marbre.php @@ -60,9 +60,10 @@ class mod_propale_marbre extends ModeleNumRefPropales /** * Return description of numbering module * - * @return string Text with description + * @param Translate $langs Lang object to use for output + * @return string Descriptive text */ - public function info() + public function info($langs) { global $langs; return $langs->trans("SimpleNumRefModelDesc", $this->prefix); diff --git a/htdocs/core/modules/propale/mod_propale_saphir.php b/htdocs/core/modules/propale/mod_propale_saphir.php index 74395dcc599..fb5e4866a37 100644 --- a/htdocs/core/modules/propale/mod_propale_saphir.php +++ b/htdocs/core/modules/propale/mod_propale_saphir.php @@ -60,9 +60,10 @@ class mod_propale_saphir extends ModeleNumRefPropales /** * Return description of module * - * @return string Descriptive text + * @param Translate $langs Lang object to use for output + * @return string Descriptive text */ - public function info() + public function info($langs) { global $conf, $langs, $db; diff --git a/htdocs/core/modules/reception/mod_reception_beryl.php b/htdocs/core/modules/reception/mod_reception_beryl.php index 4ef59f6aa1e..816946651e8 100644 --- a/htdocs/core/modules/reception/mod_reception_beryl.php +++ b/htdocs/core/modules/reception/mod_reception_beryl.php @@ -37,9 +37,10 @@ class mod_reception_beryl extends ModelNumRefReception /** * Return default description of numbering model * - * @return string text description + * @param Translate $langs Lang object to use for output + * @return string Descriptive text */ - public function info() + public function info($langs) { global $langs; return $langs->trans("SimpleNumRefModelDesc", $this->prefix); diff --git a/htdocs/core/modules/reception/mod_reception_moonstone.php b/htdocs/core/modules/reception/mod_reception_moonstone.php index c9e52d8d10f..d9c245556d7 100644 --- a/htdocs/core/modules/reception/mod_reception_moonstone.php +++ b/htdocs/core/modules/reception/mod_reception_moonstone.php @@ -37,11 +37,12 @@ class mod_reception_moonstone extends ModelNumRefReception /** * Return default description of numbering model * - * @return string text description + * @param Translate $langs Lang object to use for output + * @return string Descriptive text */ - public function info() + public function info($langs) { - global $conf, $langs, $db; + global $langs, $db; $langs->load("bills"); diff --git a/htdocs/core/modules/stocktransfer/mod_stocktransfer_advanced.php b/htdocs/core/modules/stocktransfer/mod_stocktransfer_advanced.php index c19067c019d..3bd049792e4 100644 --- a/htdocs/core/modules/stocktransfer/mod_stocktransfer_advanced.php +++ b/htdocs/core/modules/stocktransfer/mod_stocktransfer_advanced.php @@ -55,11 +55,12 @@ class mod_stocktransfer_advanced extends ModeleNumRefStockTransfer /** * Returns the description of the numbering model * - * @return string Descriptive text + * @param Translate $langs Lang object to use for output + * @return string Descriptive text */ - public function info() + public function info($langs) { - global $conf, $langs, $db; + global $langs, $db; $langs->load("bills"); diff --git a/htdocs/core/modules/stocktransfer/mod_stocktransfer_standard.php b/htdocs/core/modules/stocktransfer/mod_stocktransfer_standard.php index fc647d3135c..301bee244c0 100644 --- a/htdocs/core/modules/stocktransfer/mod_stocktransfer_standard.php +++ b/htdocs/core/modules/stocktransfer/mod_stocktransfer_standard.php @@ -53,9 +53,10 @@ class mod_stocktransfer_standard extends ModeleNumRefStockTransfer /** * Return description of numbering module * - * @return string Text with description + * @param Translate $langs Lang object to use for output + * @return string Descriptive text */ - public function info() + public function info($langs) { global $langs; return $langs->trans("SimpleNumRefModelDesc", $this->prefix); diff --git a/htdocs/core/modules/supplier_invoice/mod_facture_fournisseur_cactus.php b/htdocs/core/modules/supplier_invoice/mod_facture_fournisseur_cactus.php index fcb92fe20ae..bfb1d006106 100644 --- a/htdocs/core/modules/supplier_invoice/mod_facture_fournisseur_cactus.php +++ b/htdocs/core/modules/supplier_invoice/mod_facture_fournisseur_cactus.php @@ -66,9 +66,10 @@ class mod_facture_fournisseur_cactus extends ModeleNumRefSuppliersInvoices /** * Return description of numbering model * - * @return string Text with description + * @param Translate $langs Lang object to use for output + * @return string Descriptive text */ - public function info() + public function info($langs) { global $langs; $langs->load("bills"); diff --git a/htdocs/core/modules/supplier_invoice/mod_facture_fournisseur_tulip.php b/htdocs/core/modules/supplier_invoice/mod_facture_fournisseur_tulip.php index 1a86dfbe611..cc3a2967471 100644 --- a/htdocs/core/modules/supplier_invoice/mod_facture_fournisseur_tulip.php +++ b/htdocs/core/modules/supplier_invoice/mod_facture_fournisseur_tulip.php @@ -63,9 +63,10 @@ class mod_facture_fournisseur_tulip extends ModeleNumRefSuppliersInvoices /** * Returns the description of the model numbering * - * @return string Description Text + * @param Translate $langs Lang object to use for output + * @return string Descriptive text */ - public function info() + public function info($langs) { global $langs, $db; diff --git a/htdocs/core/modules/supplier_order/mod_commande_fournisseur_muguet.php b/htdocs/core/modules/supplier_order/mod_commande_fournisseur_muguet.php index aecf91086a7..f0e6c879e02 100644 --- a/htdocs/core/modules/supplier_order/mod_commande_fournisseur_muguet.php +++ b/htdocs/core/modules/supplier_order/mod_commande_fournisseur_muguet.php @@ -72,9 +72,10 @@ class mod_commande_fournisseur_muguet extends ModeleNumRefSuppliersOrders /** * Return description of numbering module * - * @return string Text with description + * @param Translate $langs Lang object to use for output + * @return string Descriptive text */ - public function info() + public function info($langs) { global $langs; return $langs->trans("SimpleNumRefModelDesc", $this->prefix); diff --git a/htdocs/core/modules/supplier_order/mod_commande_fournisseur_orchidee.php b/htdocs/core/modules/supplier_order/mod_commande_fournisseur_orchidee.php index f829048e623..c6985645288 100644 --- a/htdocs/core/modules/supplier_order/mod_commande_fournisseur_orchidee.php +++ b/htdocs/core/modules/supplier_order/mod_commande_fournisseur_orchidee.php @@ -59,11 +59,12 @@ class mod_commande_fournisseur_orchidee extends ModeleNumRefSuppliersOrders /** * Returns the description of the numbering model * - * @return string Descriptive text + * @param Translate $langs Lang object to use for output + * @return string Descriptive text */ - public function info() + public function info($langs) { - global $db, $conf, $langs; + global $db, $langs; // Load translation files required by the page $langs->loadLangs(array("bills", "admin")); diff --git a/htdocs/core/modules/supplier_payment/mod_supplier_payment_brodator.php b/htdocs/core/modules/supplier_payment/mod_supplier_payment_brodator.php index a3e938a38ac..fb980a4e038 100644 --- a/htdocs/core/modules/supplier_payment/mod_supplier_payment_brodator.php +++ b/htdocs/core/modules/supplier_payment/mod_supplier_payment_brodator.php @@ -57,11 +57,12 @@ class mod_supplier_payment_brodator extends ModeleNumRefSupplierPayments /** * Returns the description of the numbering model * - * @return string Descriptive text + * @param Translate $langs Lang object to use for output + * @return string Descriptive text */ - public function info() + public function info($langs) { - global $conf, $langs, $db; + global $langs, $db; $langs->load("bills"); diff --git a/htdocs/core/modules/supplier_payment/mod_supplier_payment_bronan.php b/htdocs/core/modules/supplier_payment/mod_supplier_payment_bronan.php index 823fcb53442..d436d96fde0 100644 --- a/htdocs/core/modules/supplier_payment/mod_supplier_payment_bronan.php +++ b/htdocs/core/modules/supplier_payment/mod_supplier_payment_bronan.php @@ -58,9 +58,10 @@ class mod_supplier_payment_bronan extends ModeleNumRefSupplierPayments /** * Return description of numbering module * - * @return string Text with description + * @param Translate $langs Lang object to use for output + * @return string Descriptive text */ - public function info() + public function info($langs) { global $langs; return $langs->trans("SimpleNumRefModelDesc", $this->prefix); diff --git a/htdocs/core/modules/supplier_proposal/doc/doc_generic_supplier_proposal_odt.modules.php b/htdocs/core/modules/supplier_proposal/doc/doc_generic_supplier_proposal_odt.modules.php index bbc0fdb583a..e6a7b6fe700 100644 --- a/htdocs/core/modules/supplier_proposal/doc/doc_generic_supplier_proposal_odt.modules.php +++ b/htdocs/core/modules/supplier_proposal/doc/doc_generic_supplier_proposal_odt.modules.php @@ -104,7 +104,7 @@ class doc_generic_supplier_proposal_odt extends ModelePDFSupplierProposal */ public function info($langs) { - global $conf, $langs; + global $langs; // Load translation files required by the page $langs->loadLangs(array('companies', 'errors')); diff --git a/htdocs/core/modules/supplier_proposal/mod_supplier_proposal_marbre.php b/htdocs/core/modules/supplier_proposal/mod_supplier_proposal_marbre.php index 1ffec0c8df6..f9b91800153 100644 --- a/htdocs/core/modules/supplier_proposal/mod_supplier_proposal_marbre.php +++ b/htdocs/core/modules/supplier_proposal/mod_supplier_proposal_marbre.php @@ -60,9 +60,10 @@ class mod_supplier_proposal_marbre extends ModeleNumRefSupplierProposal /** * Return description of numbering module * - * @return string Text with description + * @param Translate $langs Lang object to use for output + * @return string Descriptive text */ - public function info() + public function info($langs) { global $langs; return $langs->trans("SimpleNumRefModelDesc", $this->prefix); diff --git a/htdocs/core/modules/supplier_proposal/mod_supplier_proposal_saphir.php b/htdocs/core/modules/supplier_proposal/mod_supplier_proposal_saphir.php index e4eecb4fa7b..75817d8e773 100644 --- a/htdocs/core/modules/supplier_proposal/mod_supplier_proposal_saphir.php +++ b/htdocs/core/modules/supplier_proposal/mod_supplier_proposal_saphir.php @@ -60,9 +60,10 @@ class mod_supplier_proposal_saphir extends ModeleNumRefSupplierProposal /** * Return description of module * - * @return string Descriptive text + * @param Translate $langs Lang object to use for output + * @return string Descriptive text */ - public function info() + public function info($langs) { global $langs, $db; diff --git a/htdocs/core/modules/takepos/mod_takepos_ref_simple.php b/htdocs/core/modules/takepos/mod_takepos_ref_simple.php index ccb26ab5ed2..85398f67c31 100644 --- a/htdocs/core/modules/takepos/mod_takepos_ref_simple.php +++ b/htdocs/core/modules/takepos/mod_takepos_ref_simple.php @@ -58,9 +58,10 @@ class mod_takepos_ref_simple extends ModeleNumRefTakepos /** * Return description of numbering module * - * @return string Text with description + * @param Translate $langs Lang object to use for output + * @return string Descriptive text */ - public function info() + public function info($langs) { global $langs; diff --git a/htdocs/core/modules/takepos/mod_takepos_ref_universal.php b/htdocs/core/modules/takepos/mod_takepos_ref_universal.php index 3ebc5858ae4..b624332e0a6 100644 --- a/htdocs/core/modules/takepos/mod_takepos_ref_universal.php +++ b/htdocs/core/modules/takepos/mod_takepos_ref_universal.php @@ -54,9 +54,10 @@ class mod_takepos_ref_universal extends ModeleNumRefTakepos /** * return description of the numbering model * - * @return string Descriptive text + * @param Translate $langs Lang object to use for output + * @return string Descriptive text */ - public function info() + public function info($langs) { global $db, $langs; diff --git a/htdocs/core/modules/ticket/doc/doc_generic_ticket_odt.modules.php b/htdocs/core/modules/ticket/doc/doc_generic_ticket_odt.modules.php index 7aa6b4a07e4..7a629568b4d 100644 --- a/htdocs/core/modules/ticket/doc/doc_generic_ticket_odt.modules.php +++ b/htdocs/core/modules/ticket/doc/doc_generic_ticket_odt.modules.php @@ -97,7 +97,7 @@ class doc_generic_ticket_odt extends ModelePDFTicket */ public function info($langs) { - global $conf, $langs; + global $langs; // Load translation files required by the page $langs->loadLangs(array('companies', 'errors')); diff --git a/htdocs/core/modules/ticket/mod_ticket_simple.php b/htdocs/core/modules/ticket/mod_ticket_simple.php index d8e41f52227..00bd01289fa 100644 --- a/htdocs/core/modules/ticket/mod_ticket_simple.php +++ b/htdocs/core/modules/ticket/mod_ticket_simple.php @@ -58,9 +58,10 @@ class mod_ticket_simple extends ModeleNumRefTicket /** * Return description of numbering module * - * @return string Text with description + * @param Translate $langs Lang object to use for output + * @return string Descriptive text */ - public function info() + public function info($langs) { global $langs; return $langs->trans("SimpleNumRefModelDesc", $this->prefix); diff --git a/htdocs/core/modules/ticket/mod_ticket_universal.php b/htdocs/core/modules/ticket/mod_ticket_universal.php index 42598771b2d..643ee368bc5 100644 --- a/htdocs/core/modules/ticket/mod_ticket_universal.php +++ b/htdocs/core/modules/ticket/mod_ticket_universal.php @@ -55,11 +55,12 @@ class mod_ticket_universal extends ModeleNumRefTicket /** * Returns the description of the numbering model * - * @return string Descriptive text + * @param Translate $langs Lang object to use for output + * @return string Descriptive text */ - public function info() + public function info($langs) { - global $db, $conf, $langs; + global $db, $langs; // Load translation files required by the page $langs->loadLangs(array("ticket", "admin")); diff --git a/htdocs/core/modules/workstation/mod_workstation_advanced.php b/htdocs/core/modules/workstation/mod_workstation_advanced.php index 253e4224b64..7dc6ddc3978 100644 --- a/htdocs/core/modules/workstation/mod_workstation_advanced.php +++ b/htdocs/core/modules/workstation/mod_workstation_advanced.php @@ -55,11 +55,12 @@ class mod_workstation_advanced extends ModeleNumRefWorkstation /** * Returns the description of the numbering model * - * @return string Descriptive text + * @param Translate $langs Lang object to use for output + * @return string Descriptive text */ - public function info() + public function info($langs) { - global $conf, $langs, $db; + global $langs, $db; $langs->load("bills"); diff --git a/htdocs/core/modules/workstation/mod_workstation_standard.php b/htdocs/core/modules/workstation/mod_workstation_standard.php index 758783316e4..2ad954e5f2e 100644 --- a/htdocs/core/modules/workstation/mod_workstation_standard.php +++ b/htdocs/core/modules/workstation/mod_workstation_standard.php @@ -52,9 +52,10 @@ class mod_workstation_standard extends ModeleNumRefWorkstation /** * Return description of numbering module * - * @return string Text with description + * @param Translate $langs Lang object to use for output + * @return string Descriptive text */ - public function info() + public function info($langs) { global $langs; return $langs->trans("SimpleNumRefNoDateModelDesc", $this->prefix); diff --git a/htdocs/modulebuilder/template/admin/setup.php b/htdocs/modulebuilder/template/admin/setup.php index 68f55f65195..d4023d4840d 100644 --- a/htdocs/modulebuilder/template/admin/setup.php +++ b/htdocs/modulebuilder/template/admin/setup.php @@ -365,7 +365,7 @@ foreach ($myTmpObjects as $myTmpObjectKey => $myTmpObjectArray) { dol_include_once('/'.$moduledir.'/class/'.strtolower($myTmpObjectKey).'.class.php'); print ''.$module->name."\n"; - print $module->info(); + print $module->info($langs); print ''; // Show example of numbering model diff --git a/htdocs/product/admin/product_lot.php b/htdocs/product/admin/product_lot.php index 364ff691b53..32b7394ce4f 100644 --- a/htdocs/product/admin/product_lot.php +++ b/htdocs/product/admin/product_lot.php @@ -214,7 +214,7 @@ if (getDolGlobalInt('MAIN_FEATURES_LEVEL') < 2) { if ($module->isEnabled()) { print ''.$module->name."\n"; - print $module->info(); + print $module->info($langs); print ''; // Show example of numbering model @@ -306,7 +306,7 @@ if (getDolGlobalInt('MAIN_FEATURES_LEVEL') < 2) { if ($module->isEnabled()) { print ''.$module->name."\n"; - print $module->info(); + print $module->info($langs); print ''; // Show example of numbering model diff --git a/htdocs/projet/admin/project.php b/htdocs/projet/admin/project.php index 20a4f01bc82..30316cc55d6 100644 --- a/htdocs/projet/admin/project.php +++ b/htdocs/projet/admin/project.php @@ -328,7 +328,7 @@ foreach ($dirmodels as $reldir) { if ($module->isEnabled()) { print ''.$module->name."\n"; - print $module->info(); + print $module->info($langs); print ''; // Show example of numbering model @@ -424,7 +424,7 @@ if (empty($conf->global->PROJECT_HIDE_TASKS)) { if ($module->isEnabled()) { print ''.$module->name."\n"; - print $module->info(); + print $module->info($langs); print ''; // Show example of numbering module diff --git a/htdocs/recruitment/admin/setup.php b/htdocs/recruitment/admin/setup.php index eb007f68ce1..a9364cc69fe 100644 --- a/htdocs/recruitment/admin/setup.php +++ b/htdocs/recruitment/admin/setup.php @@ -309,7 +309,7 @@ foreach ($myTmpObjects as $myTmpObjectKey => $myTmpObjectArray) { dol_include_once('/'.$moduledir.'/class/'.strtolower($myTmpObjectKey).'.class.php'); print ''.$module->name."\n"; - print $module->info(); + print $module->info($langs); print ''; // Show example of numbering model diff --git a/htdocs/recruitment/admin/setup_candidatures.php b/htdocs/recruitment/admin/setup_candidatures.php index 1da5d698645..0ad8e44d665 100644 --- a/htdocs/recruitment/admin/setup_candidatures.php +++ b/htdocs/recruitment/admin/setup_candidatures.php @@ -307,7 +307,7 @@ foreach ($myTmpObjects as $myTmpObjectKey => $myTmpObjectArray) { dol_include_once('/'.$moduledir.'/class/'.strtolower($myTmpObjectKey).'.class.php'); print ''.$module->name."\n"; - print $module->info(); + print $module->info($langs); print ''; // Show example of numbering model diff --git a/htdocs/takepos/admin/setup.php b/htdocs/takepos/admin/setup.php index a175fa3c6c3..82f1cfa667b 100644 --- a/htdocs/takepos/admin/setup.php +++ b/htdocs/takepos/admin/setup.php @@ -181,7 +181,7 @@ foreach ($dirmodels as $reldir) { if ($module->isEnabled()) { print ''.$module->nom."\n"; - print $module->info(); + print $module->info($langs); print ''; // Show example of numbering module