Re-commit cleaned-up version of r33565 (move subpages along with page).
authorAryeh Gregor <simetrical@users.mediawiki.org>
Fri, 23 May 2008 01:11:17 +0000 (01:11 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Fri, 23 May 2008 01:11:17 +0000 (01:11 +0000)
commitc75649cf5a104f5f560213d1d13e1fd7e2259782
tree22f023563be1bda8ee227cf55de4eaec44c42f94
parentdddde984e0f1490a743b4117e6bbe6f4a4d985df
Re-commit cleaned-up version of r33565 (move subpages along with page).
* Move subpages checkbox is not shown unless the current page or its talk page actually has subpages.
* Move subpages checkbox is shown if subpages are disabled for the current namespace, provided that the talk page has subpages (but then it has no effect unless the "move talk" box is also checked).
* Unnecessary ampersands expunged, superfluous ternary operators excised.
* Crazy 1=0 query removed.
* Limit of maximum number of pages to move at once added (default 1000).

One niggling annoyance is that if the maximum number of pages is hit due to the base page having too many subpages, the talk page probably won't be moved due to the order that results are returned, which is kind of unexpected.  Also, make sure the queries don't cause MySQL 4 to explode -- MySQL sometimes has problems with OR, especially older versions.  Other than that, should be production-ready, I think.
RELEASE-NOTES
includes/DefaultSettings.php
includes/SpecialMovepage.php
includes/Title.php
languages/messages/MessagesEn.php
maintenance/language/messages.inc