Touch up Title::get[Full|Local]URL. This concept of "if not an existing interwiki...
authorDaniel Friesen <dantman@users.mediawiki.org>
Fri, 12 Aug 2011 19:55:03 +0000 (19:55 +0000)
committerDaniel Friesen <dantman@users.mediawiki.org>
Fri, 12 Aug 2011 19:55:03 +0000 (19:55 +0000)
commit17289de2dbce04cb89b9635f4f582cc9291bf350
treeb15d9dde9ecc0be90d670577bd5622a273556349
parent8991eea8fb2d85d6ca1ca43e5a101fdd45a887a8
Touch up Title::get[Full|Local]URL. This concept of "if not an existing interwiki getFullURL calls getLocalURL" and "if external (interwiki) getLocalURL calls getFullURL" is ridiculous. In fact if mInterwiki just happens to not be '' and not exist, you create infinite recursion and php dies.
Instead of having getFullURL and getLocalURL call each other, move the interwiki workload into getLocalURL, and make getFullURL simply call getLocalURL then expand it (use the wf method in case it's already a full url) and append the fragment to it.
includes/Title.php