Do move options checks before the move
authorGergő Tisza <tgr.huwiki@gmail.com>
Wed, 12 Jun 2019 11:41:15 +0000 (13:41 +0200)
committerGergő Tisza <tgr.huwiki@gmail.com>
Wed, 12 Jun 2019 12:13:17 +0000 (14:13 +0200)
commit5b0fd153dfc3732a320355bd9b8ab7fd737f0434
tree4ee5f95572d2e25cbab4cfae4f59b7f78767938d
parent284367013f6ae00be28a4a35e5980ffc3134cc5e
Do move options checks before the move

This is both more correct conceptually (if the move-subpages
permission check depends on the page content, we want that to be
the content that is getting moved) and hopefully more robust
(whereas doing permission checks on a title just after having
moved it might run into issues with replication lag).

Also, permission checks can be expensive so skip the move-subpage
check when the user did not request moving subpages anyway. And
replace the deprecated method.

Bug: T225366
Change-Id: I9809b2a5bbae4006d5c5389dfd7c04f20f7da8fd
includes/specials/SpecialMovepage.php