Skip to content

Commit

Permalink
Update WikibaseClient::getSettings() call (#29)
Browse files Browse the repository at this point in the history
The method has been static for a while, and getDefaultInstance() is going away now.
  • Loading branch information
lucaswerkmeister authored Apr 21, 2021
1 parent 539be69 commit bba9ccb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions includes/FemiwikiHooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,10 @@ private static function addWikibaseNewItemLink( Skin $skin, &$bar ): void {
return;
}
$title = $skin->getTitle();
$wbClient = WikibaseClient::getDefaultInstance();
$repoLinker = WikibaseClient::getRepoLinker();

$params = [
'site' => $wbClient->getSettings()->getSetting( 'siteGlobalID' ),
'site' => WikibaseClient::getSettings()->getSetting( 'siteGlobalID' ),
'page' => $title->getPrefixedText()
];

Expand Down

0 comments on commit bba9ccb

Please sign in to comment.