Followup r94349; Interwiki::getURL used `$title != null` to test if the $title arg...
authorDaniel Friesen <dantman@users.mediawiki.org>
Fri, 12 Aug 2011 14:55:25 +0000 (14:55 +0000)
committerDaniel Friesen <dantman@users.mediawiki.org>
Fri, 12 Aug 2011 14:55:25 +0000 (14:55 +0000)
commitb7474f07431c51761762e0cbb104388f045aad8e
treeb551de3ecdd47f7fc1abdb947d35b1d9f744bfd3
parent0be893412662c8b55e7c688fe679593999516d53
Followup r94349; Interwiki::getURL used `$title != null` to test if the $title arg was passed and should be substituted. However `"" == null`, so as a result switching to using the argument broke [[mw:]] style interwiki links without an article title.
Update the Interwiki::getURL code to use isset(), and update the comment to tell pre-1.19 supporting extensions to do the entire urlencoding and $1 substitution on their own since Interwiki::getURL was essentially buggy and broken before now.
includes/interwiki/Interwiki.php