Update calls to WikibaseClient::getLanguageFallbackLabelDescriptionLookupFactory

Bug: T279084
Depends-On: Ibcd85906b7317e67175616a00a04333f9ffb7ca6
Change-Id: I18c1c4690dc9ec1a8adbb24268b2bff3f8331b2b
This commit is contained in:
Itamar Givon 2021-04-07 10:24:31 +02:00
parent 60935ddafd
commit 385d54f607

View file

@ -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
);
}