mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-11-13 17:56:59 +00:00
Update calls to WikibaseClient::getLanguageFallbackLabelDescriptionLookupFactory
Bug: T279084 Depends-On: Ibcd85906b7317e67175616a00a04333f9ffb7ca6 Change-Id: I18c1c4690dc9ec1a8adbb24268b2bff3f8331b2b
This commit is contained in:
parent
60935ddafd
commit
385d54f607
|
@ -145,8 +145,6 @@ class MathWikibaseConfig {
|
||||||
*/
|
*/
|
||||||
public static function getDefaultMathWikibaseConfig() : MathWikibaseConfig {
|
public static function getDefaultMathWikibaseConfig() : MathWikibaseConfig {
|
||||||
if ( !self::$defaultConfig ) {
|
if ( !self::$defaultConfig ) {
|
||||||
$wikibaseClient = WikibaseClient::getDefaultInstance();
|
|
||||||
|
|
||||||
$site = null;
|
$site = null;
|
||||||
try {
|
try {
|
||||||
$site = WikibaseClient::getSite();
|
$site = WikibaseClient::getSite();
|
||||||
|
@ -158,7 +156,7 @@ class MathWikibaseConfig {
|
||||||
self::$defaultConfig = new MathWikibaseConfig(
|
self::$defaultConfig = new MathWikibaseConfig(
|
||||||
WikibaseClient::getEntityIdParser(),
|
WikibaseClient::getEntityIdParser(),
|
||||||
WikibaseClient::getStore()->getEntityRevisionLookup(),
|
WikibaseClient::getStore()->getEntityRevisionLookup(),
|
||||||
$wikibaseClient->getLanguageFallbackLabelDescriptionLookupFactory(),
|
WikibaseClient::getLanguageFallbackLabelDescriptionLookupFactory(),
|
||||||
$site
|
$site
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue