From cec39a3d777a51080874e88fcfacfc913c39c574 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Fri, 19 Feb 2016 11:56:39 +0100 Subject: [PATCH] Do not destroy gettext global variables MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michal Čihař --- libraries/common.inc.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libraries/common.inc.php b/libraries/common.inc.php index 33be619c3c..b4e8345f0c 100644 --- a/libraries/common.inc.php +++ b/libraries/common.inc.php @@ -148,6 +148,12 @@ $variables_whitelist = array ( 'PMA_PHP_SELF', 'variables_whitelist', 'key', + # following are set by gettext.inc + 'text_domains', + 'default_domain', + 'LC_CATEGORIES', + 'EMULATEGETTEXT', + 'CURRENTLOCALE', ); foreach (get_defined_vars() as $key => $value) {