Added hook support for localized functions.
[fa-stable.git] / includes / session.inc
index 236d90e2245a2a7167fce39c23057669c269cd3a..f8d8c1e6253b786906c1c0a86af5ace4aa5d1054 100644 (file)
@@ -125,6 +125,12 @@ if (!isset($_SESSION['languages']))
 
 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");