X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Fsession.inc;h=8929ff2e4341e83a777b7e75ebd4fb7d76e8789c;hb=da128fc101cb020e2ab05680e6d14eb1a2131ef5;hp=ea1c12a54367e978845e0c99f4370ab7a2a571b0;hpb=5c416dc0a557ac15903667947934d9a908ae9540;p=fa-stable.git diff --git a/includes/session.inc b/includes/session.inc index ea1c12a5..8929ff2e 100644 --- a/includes/session.inc +++ b/includes/session.inc @@ -176,8 +176,9 @@ if (!isset($_SESSION['language'])) $_SESSION['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")) +if (file_exists($path_to_root . "/lang/".$_SESSION['language']->code."/locale.inc")) { + include_once($path_to_root . "/lang/".$_SESSION['language']->code."/locale.inc"); $Hooks = new Hooks(); } @@ -186,7 +187,7 @@ include_once($path_to_root . "/config.php"); include_once($path_to_root . "/includes/main.inc"); // Ajax communication object -$Ajax =& new Ajax(); +$Ajax = new Ajax(); // js/php validation rules container $Validate = array();