Nikki added a comment.
As I mentioned on
https://www.wikidata.org/wiki/Wikidata:Contact_the_development_team#.22media.22_label_for_MediaWiki.org,
`replaceSiteId` is called twice in the gadget, but I don't understand what
it's doing well enough to know why both are there and whether one can safe
Mbch331 added a subscriber: Mbch331.
Mbch331 added a comment.
This is because MediaWiki:Gadget-SiteIdToInterwiki.js is executed twice on a
page. So mediawikiwiki becomes mediawiki which becomes media.
TASK DETAIL
https://phabricator.wikimedia.org/T117404
EMAIL PREFERENCES
https://phabrica