Fix for catchable fatals thrown on invalid titles, follow-up to miscellaneous Context...
authorHappy-melon <happy-melon@users.mediawiki.org>
Mon, 4 Apr 2011 23:09:21 +0000 (23:09 +0000)
committerHappy-melon <happy-melon@users.mediawiki.org>
Mon, 4 Apr 2011 23:09:21 +0000 (23:09 +0000)
commit5fc6bb9f16db3756bd48a48ab90355e26ec599cc
tree5aa6cdadc7c2ed84b4f072a2824187b2a9397d17
parente7fe50bad609011e0d5a7bc710661acca4d9c4a4
Fix for catchable fatals thrown on invalid titles, follow-up to miscellaneous Context commit pulled out of a hat (let's go for r85252).  We must always have a Title object, even on invalid titles, for the purposes of not melting the Skin.  The previous method was to make that a barely-existent half-title from SpecialPage::getTitleFor( 'Badtitle' ), where that is a special page which is not actually defined, but exists in the localisation alias lists.  Instead, subclass Title as an explicit BadTitle which we can test for.  The badtitle error page, which has empty string for its name in all forms, would probably be quite a good test of our JavaScript error checking.
includes/AutoLoader.php
includes/Title.php
includes/Wiki.php
languages/messages/MessagesEn.php