projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed language modules locale.inc integration.
[fa-stable.git]
/
includes
/
hooks.inc
diff --git
a/includes/hooks.inc
b/includes/hooks.inc
index 63e1684ce853f990eef9ca71866da04d5ee384d1..85b7ae93544ada5e3cda343d8464ebee5d692d49 100644
(file)
--- a/
includes/hooks.inc
+++ b/
includes/hooks.inc
@@
-18,9
+18,9
@@
//
// To find how various hooks are processed look into respective hook_* functions below.
//
//
// To find how various hooks are processed look into respective hook_* functions below.
//
-class hooks
extends \stdClass
{
+class hooks {
var $module_name; // extension module name.
var $module_name; // extension module name.
-
+ var $path = null;
//
// Helper for updating databases with extension scheme
//
//
// Helper for updating databases with extension scheme
//
@@
-234,6
+234,7
@@
function install_hooks($lang_code=null)
$code = $lang_code;
$hook_class = 'hooks_'.$code;
$Hooks[$code] = new $hook_class;
$code = $lang_code;
$hook_class = 'hooks_'.$code;
$Hooks[$code] = new $hook_class;
+ $Hooks[$code]->path = "/lang/" . $lang_code . "/locale.inc";
unset($code, $hook_class);
}
// install hooks provided by active extensions
unset($code, $hook_class);
}
// install hooks provided by active extensions