diff --git a/src/MathWikibaseConfig.php b/src/MathWikibaseConfig.php index 39c09bc2c..3bcac1bdf 100644 --- a/src/MathWikibaseConfig.php +++ b/src/MathWikibaseConfig.php @@ -145,8 +145,6 @@ class MathWikibaseConfig { */ public static function getDefaultMathWikibaseConfig() : MathWikibaseConfig { if ( !self::$defaultConfig ) { - $wikibaseClient = WikibaseClient::getDefaultInstance(); - $site = null; try { $site = WikibaseClient::getSite(); @@ -158,7 +156,7 @@ class MathWikibaseConfig { self::$defaultConfig = new MathWikibaseConfig( WikibaseClient::getEntityIdParser(), WikibaseClient::getStore()->getEntityRevisionLookup(), - $wikibaseClient->getLanguageFallbackLabelDescriptionLookupFactory(), + WikibaseClient::getLanguageFallbackLabelDescriptionLookupFactory(), $site ); }