Fix: store triggers path to $conf
This commit is contained in:
parent
0bee9e9362
commit
933c84c127
@ -132,8 +132,7 @@ class Conf
|
|||||||
if (preg_match('/^MAIN_MODULE_([A-Z]+)_TRIGGERS$/i',$key,$regs) && $value)
|
if (preg_match('/^MAIN_MODULE_([A-Z]+)_TRIGGERS$/i',$key,$regs) && $value)
|
||||||
{
|
{
|
||||||
$modulename = strtolower($regs[1]);
|
$modulename = strtolower($regs[1]);
|
||||||
$pathoftrigger = DOL_DOCUMENT_ROOT.'/'.$modulename.'/inc/triggers/';
|
$this->triggers_modules[] = DOL_DOCUMENT_ROOT.'/'.$modulename.'/inc/triggers/';
|
||||||
$this->triggers_modules[] = $pathoftrigger;
|
|
||||||
}
|
}
|
||||||
// If this is constant to force a module directories (used to manage some exceptions)
|
// If this is constant to force a module directories (used to manage some exceptions)
|
||||||
// Should not be used by modules
|
// Should not be used by modules
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user