projects
/
textcart.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d70eca2
)
Fixed lang domain switching in hooks_invoke_first/hook_invoke_last
author
Janusz Dobrowolski
<janusz@frontaccouting.eu>
Fri, 20 Apr 2012 09:33:29 +0000
(11:33 +0200)
committer
Janusz Dobrowolski
<janusz@frontaccouting.eu>
Fri, 20 Apr 2012 09:33:29 +0000
(11:33 +0200)
includes/hooks.inc
patch
|
blob
|
history
diff --git
a/includes/hooks.inc
b/includes/hooks.inc
index 90bf2071b231bd2f2b059ccd717e38f939624f0e..515bcccf3c9f72a22f4bbf79439a3d1a4973c2b8 100644
(file)
--- 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;