From 9da795245ef207897bbb4ddb6b0706535549b753 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Mon, 26 Jul 2010 16:39:04 +0200 Subject: [PATCH] It makes no sense load translations here Either the message is translated or not, but we can not do much about it. --- libraries/core.lib.php | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/libraries/core.lib.php b/libraries/core.lib.php index 40c7e569f..cdc3b664b 100644 --- a/libraries/core.lib.php +++ b/libraries/core.lib.php @@ -220,21 +220,6 @@ function PMA_securePath($path) */ function PMA_fatalError($error_message, $message_args = null) { - // it could happen PMA_fatalError() is called before language file is loaded - if (! isset($GLOBALS['available_languages'])) { - $GLOBALS['cfg'] = array( - 'DefaultLang' => 'en', - ); - - // Loads the language file - require_once './libraries/select_lang.lib.php'; - - // $text_dir is set in po file - if (isset($text_dir)) { - $GLOBALS['text_dir'] = $text_dir; - } - } - if (is_string($message_args)) { $error_message = sprintf($error_message, $message_args); } elseif (is_array($message_args)) {