Fixed "last modified" date fudging on null edit
authorAaron Schulz <aschulz@wikimedia.org>
Wed, 16 Sep 2015 22:13:48 +0000 (15:13 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Wed, 16 Sep 2015 22:13:48 +0000 (15:13 -0700)
commit35e4964e6c98e7cc09e42392abddfaffe02c1003
tree90a0dc5e0d32c1decda69187839cbc8e8032571f
parent2f0a765a9cd821ee50a492fd2e6fddd65d8681fe
Fixed "last modified" date fudging on null edit

* Avoid setting mTimestamp in doEditContent() until the edit was
  comitted. Null edits do not even try to add $revision to the DB,
  so do not set mTimestamp at all in that case.
* This avoids the problem where ParserCache used a bad getTimestamp()
  value to set the ParserOutput timestamp via setTimestamp(), which
  Article later uses as the "last modified" timestamp.

Bug: T112609
Change-Id: I79d7777c7f7470ff421ffeda80ac60dca07653fb
includes/page/WikiPage.php