Make the context page the edited page in EditPages
authordaniel <dkinzler@wikimedia.org>
Thu, 15 Nov 2018 14:56:57 +0000 (15:56 +0100)
committerDaniel Kinzler <dkinzler@wikimedia.org>
Fri, 16 Nov 2018 09:30:12 +0000 (09:30 +0000)
commit501bb93e3ed7eb7bcb23348856ed002b4e307dc5
tree1c2ccd51fa993e4f5c7be39286507e75ca7eb991
parent595640d90df44e84dbff02647617c90c95f35c7e
Make the context page the edited page in EditPages

This forces the WikiPage returned by $this->getContext()->getPage()
to be the same as $this->page.

This seems to be redundant at the moment, but it seems prudent to
make sure this does not break. Having two WikiPage instances may
cause subtle problems, such as redundant parsing of content during
edits.

Bug: T205369
Change-Id: I8dd3235ec395fa8772ad810f8b09a098a940ab0c
includes/EditPage.php