Update WikibaseClient::getSettings() calls

Bug: T275412
Change-Id: I9d0762886cebb96c0d5de911248a53a9ffc14a0f
Depends-On: I3506ad80d57639f066c2b86358058b4432b6a666
This commit is contained in:
Lucas Werkmeister 2021-03-04 11:36:07 +01:00
parent ad7eaabb9d
commit 9247f49067

View file

@ -243,12 +243,10 @@ class MathWikibaseConnector {
* @return string
*/
public static function buildURL( $qID ) {
$baseurl = WikibaseClient::getDefaultInstance()
->getSettings()->getSetting( 'repoUrl' );
$articlePath = WikibaseClient::getDefaultInstance()
->getSettings()->getSetting( 'repoArticlePath' );
$namespaces = WikibaseClient::getDefaultInstance()
->getSettings()->getSetting( 'repoNamespaces' );
$settings = WikibaseClient::getSettings();
$baseurl = $settings->getSetting( 'repoUrl' );
$articlePath = $settings->getSetting( 'repoArticlePath' );
$namespaces = $settings->getSetting( 'repoNamespaces' );
$url = $baseurl . $articlePath;