This might be called without initialized gettext.

This commit is contained in:
Michal Čihař
2010-07-27 09:11:18 +02:00
parent 406f7e8653
commit a47c6e8bea

View File

@@ -228,12 +228,18 @@ function PMA_fatalError($error_message, $message_args = null)
}
$error_message = strtr($error_message, array('<br />' => '[br]'));
if (function_exists('__')) {
$error_header = __('Error');
} else {
$error_header = 'Error';
}
// Displays the error message
// (do not use &amp; for parameters sent by header)
$query_params = array(
'lang' => $GLOBALS['available_languages'][$GLOBALS['lang']][1],
'dir' => $GLOBALS['text_dir'],
'type' => __('Error'),
'type' => $error_header,
'error' => $error_message,
);
header('Location: ' . (defined('PMA_SETUP') ? '../' : '') . 'error.php?'