forked from Wavyzz/dolibarr
Merge branch '11.0' of git@github.com:Dolibarr/dolibarr.git into 12.0
Conflicts: htdocs/core/class/hookmanager.class.php htdocs/main.inc.php htdocs/theme/eldy/info-box.inc.php htdocs/theme/eldy/style.css.php
This commit is contained in:
@@ -105,7 +105,7 @@ class HookManager
|
||||
if (in_array($context, $arrayhooks) || in_array('all', $arrayhooks)) // We instantiate action class only if initialized hook is handled by module
|
||||
{
|
||||
// Include actions class overwriting hooks
|
||||
if (!is_object($this->hooks[$context][$module])) // If set, class was already loaded
|
||||
if (empty($this->hooks[$context][$module]) || !is_object($this->hooks[$context][$module])) // If set to an object value, class was already loaded
|
||||
{
|
||||
$path = '/'.$module.'/class/';
|
||||
$actionfile = 'actions_'.$module.'.class.php';
|
||||
|
||||
Reference in New Issue
Block a user