ApiEditPage: Fetch content model from article, not title
authorBrad Jorsch <bjorsch@wikimedia.org>
Thu, 23 Apr 2015 14:21:11 +0000 (10:21 -0400)
committerBrad Jorsch <bjorsch@wikimedia.org>
Thu, 23 Apr 2015 14:23:41 +0000 (10:23 -0400)
commit480e8cceb1bcf9fd6fa6e639d641a51717068a11
tree53b01d1135532e620ebe174adca0d1177b531c84
parentb40158b77b483ba6b8bce6564ea2fb643dc6d45b
ApiEditPage: Fetch content model from article, not title

The Title object's cached content model isn't updated after the edit.
The Article object fetches the model from the revision that was just
created, so let's just use that instead.

Bug: T96937
Change-Id: I4c5ab3ec6829d403a29a8a8f55e7458730369034
includes/api/ApiEditPage.php