From 3ef9e6f02a4460bf96c65987e0a7b0e17d376a45 Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Fri, 20 Apr 2012 11:33:29 +0200 Subject: [PATCH] Fixed lang domain switching in hooks_invoke_first/hook_invoke_last --- includes/hooks.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.30.2