From f8f7b5661b2523a830bc28a12993b74b31557fe1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Mon, 17 May 2010 11:35:29 +0200 Subject: [PATCH] This can not use translations as they are initialized after sessions. --- libraries/session.inc.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libraries/session.inc.php b/libraries/session.inc.php index 372c1ada5..8f5bec9d0 100644 --- a/libraries/session.inc.php +++ b/libraries/session.inc.php @@ -81,7 +81,11 @@ if (! isset($_COOKIE[$session_name])) { $r = session_start(); if ($r !== true || $orig_error_count != $GLOBALS['error_handler']->countErrors()) { setcookie($session_name, '', 1); - PMA_fatalError(__('Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly.')); + /* + * Session initialization is done before selecting language, so we + * can not use translations here. + */ + PMA_fatalError('Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly.'); } unset($orig_error_count); } else {