Fixed regression in gettext tests in System Diagnostics.
authorJanusz Dobrowolski <janusz@frontaccouting.eu>
Mon, 13 Feb 2012 11:40:58 +0000 (12:40 +0100)
committerJanusz Dobrowolski <janusz@frontaccouting.eu>
Mon, 13 Feb 2012 11:40:58 +0000 (12:40 +0100)
includes/system_tests.inc

index 798ef6776539c8251e9bb4a6fd704b972edb2e75..710178e4e294fe2dc9bb6f17a0a1d771c38faaa8 100644 (file)
@@ -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']);