You've already forked phpmyadmin
mirror of
https://github.com/phpmyadmin/phpmyadmin.git
synced 2026-10-28 07:41:55 +03:00
Define fake __ function in case of gettext is not loaded for fatal error
This commit is contained in:
@@ -220,12 +220,13 @@ function PMA_fatalError(
|
||||
} else {
|
||||
$error_message = strtr($error_message, array('<br />' => '[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'];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user