From 825d346c65fc17e4d0056a178b4cb23947d298d6 Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Mon, 13 Feb 2012 12:40:58 +0100 Subject: [PATCH] Fixed regression in gettext tests in System Diagnostics. --- includes/system_tests.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/system_tests.inc b/includes/system_tests.inc index 798ef67..710178e 100644 --- a/includes/system_tests.inc +++ b/includes/system_tests.inc @@ -228,7 +228,7 @@ function tst_tmpdir() function tst_langs($install) { - global $installed_languages, $path_to_root; + global $installed_languages, $path_to_root, $GetText; $test['descr'] = _('Language configuration consistency'); $test['type'] = 3; @@ -269,7 +269,7 @@ function tst_langs($install) $test['result'] = false; $test['comments'][] = sprintf( _('Missing %s translation file.'), $file); } - if (!$_SESSION['get_text']->check_support($lang['code'], $lang['encoding'])) + if (!$GetText->check_support($lang['code'], $lang['encoding'])) { $test['result'] = false; $test['comments'][] = sprintf(_('Missing system locale: %s'), $lang['code'].".".$lang['encoding']); -- 2.30.2