Merge pull request #14059 from atm-florianm/FIX_10.0_missing_global_langs_when_activating_modContrat

FIX 10.0 - undefined $langs if template file copy fails during activation of modContrat
This commit is contained in:
Laurent Destailleur 2020-06-11 23:02:19 +02:00 committed by GitHub
commit 9aafb82fd3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -214,7 +214,7 @@ class modContrat extends DolibarrModules
*/
public function init($options = '')
{
global $conf;
global $conf, $langs;
// Nettoyage avant activation
$this->remove($options);