mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-11-24 15:44:33 +00:00
Update WikibaseClient::getSettings() calls
Bug: T275412 Change-Id: I9d0762886cebb96c0d5de911248a53a9ffc14a0f Depends-On: I3506ad80d57639f066c2b86358058b4432b6a666
This commit is contained in:
parent
ad7eaabb9d
commit
9247f49067
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue