From bb1df87584da4e967929c13877bbf79800578333 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Wed, 7 Aug 2013 15:12:57 +0200 Subject: [PATCH] Gettext is already loaded at this point --- libraries/Config.class.php | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/libraries/Config.class.php b/libraries/Config.class.php index 3070b1fe65..1e662883d9 100644 --- a/libraries/Config.class.php +++ b/libraries/Config.class.php @@ -1153,13 +1153,12 @@ class PMA_Config $this->checkWebServerOs(); if ($this->get('PMA_IS_WINDOWS') == 0) { $this->source_mtime = 0; - /* Gettext is possibly still not loaded */ - if (function_exists('__')) { - $msg = __('Wrong permissions on configuration file, should not be world writable!'); - } else { - $msg = 'Wrong permissions on configuration file, should not be world writable!'; - } - PMA_fatalError($msg); + PMA_fatalError( + __( + 'Wrong permissions on configuration file, ' + . 'should not be world writable!' + ) + ); } } }