Call Language::getLocalisationCache() static
authorumherirrender <umherirrender_de.wp@web.de>
Sat, 4 Jan 2014 20:33:12 +0000 (21:33 +0100)
committerumherirrender <umherirrender_de.wp@web.de>
Sat, 4 Jan 2014 20:33:12 +0000 (21:33 +0100)
Change-Id: Ibbe03b92f2beebaaf93ba9e3c5bebbf3d7626b7a

tests/phpunit/includes/logging/LogFormatterTest.php

index 9650fb1..6210d09 100644 (file)
@@ -32,7 +32,7 @@ class LogFormatterTest extends MediaWikiLangTestCase {
                        'wgExtensionMessagesFiles' => array( 'LogTests' => __DIR__ . '/LogTests.i18n.php' ),
                ) );
 
-               $wgLang->getLocalisationCache()->recache( $wgLang->getCode() );
+               Language::getLocalisationCache()->recache( $wgLang->getCode() );
 
                $this->user = User::newFromName( 'Testuser' );
                $this->title = Title::newMainPage();
@@ -47,7 +47,7 @@ class LogFormatterTest extends MediaWikiLangTestCase {
                parent::tearDown();
 
                global $wgLang;
-               $wgLang->getLocalisationCache()->recache( $wgLang->getCode() );
+               Language::getLocalisationCache()->recache( $wgLang->getCode() );
        }
 
        public function newLogEntry( $action, $params ) {