From ea18e5efe70f2b205e8d70c34559092cac6e66e9 Mon Sep 17 00:00:00 2001 From: umherirrender Date: Sat, 4 Jan 2014 21:33:12 +0100 Subject: [PATCH] Call Language::getLocalisationCache() static Change-Id: Ibbe03b92f2beebaaf93ba9e3c5bebbf3d7626b7a --- tests/phpunit/includes/logging/LogFormatterTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/phpunit/includes/logging/LogFormatterTest.php b/tests/phpunit/includes/logging/LogFormatterTest.php index 9650fb1b34..6210d0985c 100644 --- a/tests/phpunit/includes/logging/LogFormatterTest.php +++ b/tests/phpunit/includes/logging/LogFormatterTest.php @@ -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 ) { -- 2.20.1