* (bug 27680) Fix for r82273: wgCanonicalSpecialPageName no longer false when request...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Fri, 25 Feb 2011 11:48:14 +0000 (11:48 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Fri, 25 Feb 2011 11:48:14 +0000 (11:48 +0000)
commit477e6e0610b57ffcad689012901c71d841e571b3
tree43ea0a960abd4d9b5c4a688bb2b566da57e35881
parent0a21e2de1242a08dda5d6d16cb1913ae7bc6b7ed
* (bug 27680) Fix for r82273: wgCanonicalSpecialPageName no longer false when requesting a special page with subpage parameter

The problem is that in this case $wgOut's Title object is not exactely the same $wgTitle because of line 600 of SpecialPage:
$wgTitle = $page->getTitle();
which strips the subpage parameter. Now using SpecialPage::resolveAliasWithSubpage() so that it works in all cases.

Also PHP strikes again for not allowing SpecialPage::resolveAliasWithSubpage( $title->getDBkey() )[0] syntax. YAY :)
includes/OutputPage.php