X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Fhooks.inc;h=515bcccf3c9f72a22f4bbf79439a3d1a4973c2b8;hb=063c5f22068dbbd6adccacaf5bd0f66b2eda8e4f;hp=90bf2071b231bd2f2b059ccd717e38f939624f0e;hpb=08cd9a5c251dd8fe2d8b5f5a8a19239d36800f4c;p=fa-stable.git diff --git a/includes/hooks.inc b/includes/hooks.inc index 90bf2071..515bcccf 100644 --- a/includes/hooks.inc +++ b/includes/hooks.inc @@ -278,9 +278,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; @@ -300,9 +300,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;