Cleanup for r42022/r42023 interwiki stuff
authorBrion Vibber <brion@users.mediawiki.org>
Mon, 13 Oct 2008 18:43:55 +0000 (18:43 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Mon, 13 Oct 2008 18:43:55 +0000 (18:43 +0000)
commit6effda76b55887762b2268562e3eca3787dcdc7f
tree94b413542e01981f46a6435f844845567908e58a
parent03724e14a3cc34e56a6a939891b9c6dbfe12e709
Cleanup for r42022/r42023 interwiki stuff
* Remove duplicate code in Interwiki::isValidInterwiki(), which should help avoid future drift between the two copies
* Early return on prefix = '', we know it won't be valid :)
* Dump extra isValidInterwikiCached function -- just go through the regular fetch() path, it doesn't do much more processing.
* Simplify Title codepath in full URL generation to ensure we never call an invalid object
includes/Interwiki.php
includes/Title.php