RecentChangesLinked: Include title without subpage in form
authorStephane Bisson <sbisson@wikimedia.org>
Thu, 21 Dec 2017 14:38:21 +0000 (09:38 -0500)
committerStephane Bisson <sbisson@wikimedia.org>
Thu, 21 Dec 2017 16:30:22 +0000 (11:30 -0500)
commit21c7cd7109e177b2ab7e5b619bf6d314d8065e92
tree981b3bee4f90234f31563841d5a4885acc04827a
parent0dd7cdb304484f826511db39fcf8552101ed19c5
RecentChangesLinked: Include title without subpage in form

When the 'title' hidden field contains the subpage, the 'target'
input field is never taken into account since the subpage always
takes precedence in ChangesListSpecialPage->setup()

I75cfb2b56a4da6357e6117b3f34f3178bfb2c90c introduced
SpecialRecentChangesLinked->getPageTitle which overrides
SpecialPage->getPageTitle to include the subpage by default.

This helped with redirecting to the right page when parsing
a saved query on the server but changed the behavior everywhere
that function was used in the context of RCL. That includes
SpecialRecentChanges.php:545 where the option form is built.

Bug: T183437
Change-Id: Id39d1887719ecb6900b25fefbb133dff9c4d0456
includes/specialpage/ChangesListSpecialPage.php
includes/specials/SpecialRecentchangeslinked.php