Convert page modification to using startAtomic()/endAtomic()
authorAaron Schulz <aschulz@wikimedia.org>
Sun, 13 Dec 2015 12:18:56 +0000 (04:18 -0800)
committerOri.livneh <ori@wikimedia.org>
Tue, 9 Feb 2016 00:03:05 +0000 (00:03 +0000)
commitf4a44574035d22b771aa61161a122381fd3d9cc1
tree6a5af022d41b3b1c0a5c18ba651bf784816d28ea
parent74bc2fc1eb77ac7f2fb80f0bcfe43f1261fff5f6
Convert page modification to using startAtomic()/endAtomic()

A few semantic changes result from this:
* If multiple pages are edited in a request, the updates happen
  in the same order relative to each other, but all in one second
  step instead of after each page edit.
* If the same page is edited twice in a request, the WikiPage hook
  argument will reflect the last request edit, not always the edit
  that fired the hook.

Bug: T120718
Change-Id: I9429f29e5a90f24e4d7af5797a80e63a9cc34146
includes/page/WikiPage.php
tests/phpunit/includes/EditPageTest.php