diff --git a/includes/FemiwikiHooks.php b/includes/FemiwikiHooks.php index 58ff4cc..2fc7094 100644 --- a/includes/FemiwikiHooks.php +++ b/includes/FemiwikiHooks.php @@ -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() ];