X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Fsession.inc;h=f8d8c1e6253b786906c1c0a86af5ace4aa5d1054;hb=f4737ea725de62440c8bf58a7b4d7b187268fe93;hp=236d90e2245a2a7167fce39c23057669c269cd3a;hpb=ce77ace4ce3b96189e38a4e99712fe119b01fb51;p=fa-stable.git diff --git a/includes/session.inc b/includes/session.inc index 236d90e2..f8d8c1e6 100644 --- a/includes/session.inc +++ b/includes/session.inc @@ -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");