Merge pull request #19549 from grandoc/new_branch_04_12_2021

update code : use loadlangs function
This commit is contained in:
Laurent Destailleur 2021-12-08 16:16:32 +01:00 committed by GitHub
commit ea03019b54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -92,8 +92,8 @@ class mymodulewidget1 extends ModeleBoxes
public function __construct(DoliDB $db, $param = '')
{
global $user, $conf, $langs;
$langs->load("boxes");
$langs->load('mymodule@mymodule');
// Translations
$langs->loadLangs(array("boxes", "mymodule@mymodule"));
parent::__construct($db, $param);