diff --git a/libraries/core.lib.php b/libraries/core.lib.php index 47de1fdddf..d0f218b041 100644 --- a/libraries/core.lib.php +++ b/libraries/core.lib.php @@ -220,12 +220,13 @@ function PMA_fatalError( } else { $error_message = strtr($error_message, array('
' => '[br]')); - if (function_exists('__')) { - $error_header = __('Error'); - } else { - $error_header = 'Error'; + /* Define fake gettext for fatal errors */ + if (!function_exists('__')) { + function __($text) { return $text; } } + $error_header = __('Error'); + $lang = $GLOBALS['available_languages'][$GLOBALS['lang']][1]; $dir = $GLOBALS['text_dir'];