Add $wgLocalInterwikis to handle multiple local prefixes
authorThis, that and the other <at.light@live.com.au>
Fri, 14 Feb 2014 06:34:35 +0000 (17:34 +1100)
committerBartosz Dziewoński <matma.rex@gmail.com>
Wed, 12 Mar 2014 12:32:07 +0000 (13:32 +0100)
commit6cbdf65b4f2ac41fdce956bc271631787dcab15d
tree1157f371b2284f4b564c85e393397dcf38c214ac
parent675c2eaa54c82a5ab3934bb183cf16f05f81cb53
Add $wgLocalInterwikis to handle multiple local prefixes

This is akin to $wgSkipSkin/$wgSkipSkins. It is quite plausible for a wiki
to have more than one self prefix (e.g. enwiki has w: en: wikipedia: and
maybe others).

Some recent changes code seems to use $wgLocalInterwiki for quite unclear
purposes:
- I removed the line using $wgLocalInterwiki from the RecentChange
  class, as the 'lang' field of $mExtra is not used anywhere in core code.
  Extensions may use it, but it would seem more appropriate for them to
  use something like $wgDBname (or indeed to consult $wgLocalInterwikis
  directly) if they need to identify a particular wiki.
- In the IRC formatter, the first prefix in the array is used (if set).
  Appropriate documentation is added to DefaultSettings.php.

Related to bug 954 comment 3.

Bug: 954
Bug: 955
Change-Id: I9dbb566385b464402c5e78510b95dd2ffb4d9489
RELEASE-NOTES-1.23
includes/DefaultSettings.php
includes/Setup.php
includes/Title.php
includes/changes/RecentChange.php
includes/rcfeed/IRCColourfulRCFeedFormatter.php
tests/phpunit/includes/TitleTest.php