Provide a RevisionRecord with the correct title after a move
authorBrad Jorsch <bjorsch@wikimedia.org>
Thu, 6 Sep 2018 18:02:53 +0000 (14:02 -0400)
committerBrad Jorsch <bjorsch@wikimedia.org>
Thu, 6 Sep 2018 18:05:17 +0000 (14:05 -0400)
commit56fddb98a1280993a2c7ce90ff7be21e064e56fc
treea372d6cf9736a53d3401c3ba568d5761e8b1756e
parent52a4ffbf42c22af74e5883578cd503979781a5cb
Provide a RevisionRecord with the correct title after a move

Currently we're creating the null revision for the move before actually
updating the page's title, so when it gets passed through
RevisionRenderer the output uses the old page's title in the <h1>.

To make that null revision have the correct title, let's try simply
updating the page table before creating it instead. The ordering
shouldn't matter since this all happens in an atomic section.

Bug: T203661
Change-Id: I9ebdcbc566b11dea3a9bdd402ea4418c4e51b096
includes/MovePage.php