It makes no sense load translations here
Either the message is translated or not, but we can not do much about it.
This commit is contained in:
@@ -220,21 +220,6 @@ function PMA_securePath($path)
|
|||||||
*/
|
*/
|
||||||
function PMA_fatalError($error_message, $message_args = null)
|
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)) {
|
if (is_string($message_args)) {
|
||||||
$error_message = sprintf($error_message, $message_args);
|
$error_message = sprintf($error_message, $message_args);
|
||||||
} elseif (is_array($message_args)) {
|
} elseif (is_array($message_args)) {
|
||||||
|
Reference in New Issue
Block a user