Merged changes from main trunk up to 2.2.3
[fa-stable.git] / includes / session.inc
index ba703dee0e8432e5dbd442cfcfd78b2e66db3be8..8929ff2e4341e83a777b7e75ebd4fb7d76e8789c 100644 (file)
@@ -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();
 }