This can not use translations as they are initialized after sessions.

This commit is contained in:
Michal Čihař
2010-05-17 11:35:29 +02:00
parent 9b39786f38
commit f8f7b5661b

View File

@@ -81,7 +81,11 @@ if (! isset($_COOKIE[$session_name])) {
$r = session_start(); $r = session_start();
if ($r !== true || $orig_error_count != $GLOBALS['error_handler']->countErrors()) { if ($r !== true || $orig_error_count != $GLOBALS['error_handler']->countErrors()) {
setcookie($session_name, '', 1); 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); unset($orig_error_count);
} else { } else {