Fixed language modules locale.inc integration.
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Fri, 15 Mar 2024 10:43:52 +0000 (11:43 +0100)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Fri, 15 Mar 2024 10:43:52 +0000 (11:43 +0100)
includes/hooks.inc

index 1fbcd0e79b2d317da7439e1659bd8e6cbbebd737..85b7ae93544ada5e3cda343d8464ebee5d692d49 100644 (file)
@@ -234,6 +234,7 @@ function install_hooks($lang_code=null)
                $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