X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Fhooks.inc;h=521e48a6b862742b10daa40c66d3c72183705b8a;hb=3f3cfa578adbc2b71f4fd9c8d0f5536d26af43d8;hp=cd40491b31fa17998cf7efec7653392eec0b1254;hpb=231f4c00e32dd026d3d740d32bbdaf841ab68330;p=fa-stable.git diff --git a/includes/hooks.inc b/includes/hooks.inc index cd40491b..521e48a6 100644 --- a/includes/hooks.inc +++ b/includes/hooks.inc @@ -279,9 +279,9 @@ function hook_invoke_first($method, &$data, $opts=null) if (method_exists($hook, $method)) { set_ext_domain('modules/'.$ext); $result = $hook->$method($data, $opts); + set_ext_domain(); if (isset($result)) break; - set_ext_domain(); } } return $result; @@ -301,9 +301,9 @@ function hook_invoke_last($method, &$data, $opts=null) if (method_exists($hook, $method)) { set_ext_domain('modules/'.$ext); $result = $hook->$method($data, $opts); + set_ext_domain(); if (isset($result)) break; - set_ext_domain(); } } return $result;