mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-18 23:41:28 +01:00
Fix phpunit
This commit is contained in:
@@ -167,6 +167,12 @@ function isModEnabled($module)
|
||||
{
|
||||
global $conf;
|
||||
|
||||
// Fix special cases
|
||||
$arrayconv = array('project' => 'projet');
|
||||
if (!empty($arrayconv[$module])) {
|
||||
$module = $arrayconv[$module];
|
||||
}
|
||||
|
||||
return !empty($conf->modules[$module]);
|
||||
//return !empty($conf->$module->enabled);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user