ApiParse: Replace isCurrent() check with getLatest() comparison
authorRoan Kattouw <roan.kattouw@gmail.com>
Wed, 8 Apr 2015 21:55:44 +0000 (14:55 -0700)
committerCatrope <roan.kattouw@gmail.com>
Wed, 8 Apr 2015 22:34:16 +0000 (22:34 +0000)
commit015c90fbf987e861afe031d094be3c6f4c84f138
tree698338cb47ee1102a225985584d8d1779c57d753
parentbf1341985b4c925079905373e419b15221f24af0
ApiParse: Replace isCurrent() check with getLatest() comparison

Because the $pageObj state is what actually ends up getting used.
If $pageObj thinks an old rev is the latest one, then we are in
trouble, even if $rev knows what's really going on.

Bug: T95466
Change-Id: I4d6ba4f18adaaad052d3bee1a575ba034aaf112b
includes/api/ApiParse.php