projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added hook support for localized functions.
[fa-stable.git]
/
includes
/
session.inc
diff --git
a/includes/session.inc
b/includes/session.inc
index 236d90e2245a2a7167fce39c23057669c269cd3a..f8d8c1e6253b786906c1c0a86af5ace4aa5d1054 100644
(file)
--- a/
includes/session.inc
+++ b/
includes/session.inc
@@
-125,6
+125,12
@@
if (!isset($_SESSION['languages']))
language::set_language($_SESSION['language']->code);
language::set_language($_SESSION['language']->code);
+// include $Hooks object if locale file exists
+if(@include_once($path_to_root . "/lang/".$_SESSION['language']->code."/locale.inc"))
+{
+ $Hooks = new Hooks();
+}
+
include_once($path_to_root . "/config.php");
include_once($path_to_root . "/includes/main.inc");
include_once($path_to_root . "/config.php");
include_once($path_to_root . "/includes/main.inc");