ApiComparePages: Throw an error if getDiffBody returns false, instead of blank output
authorMatthew Britton <gurch@users.mediawiki.org>
Mon, 6 Jun 2011 09:22:52 +0000 (09:22 +0000)
committerMatthew Britton <gurch@users.mediawiki.org>
Mon, 6 Jun 2011 09:22:52 +0000 (09:22 +0000)
commit3d0bc9ca1c13752264b8091d6e93edf2e338e6af
treefc9f7ffdac67680ce1ed06b218e4560179208a21
parent8a1f6bd717b0203d2c96bf4ff535c97633d9d553
ApiComparePages: Throw an error if getDiffBody returns false, instead of blank output

This lets the client distinguish a legitimately blank diff (identical revisions) from one that does not exist or which they do not have permission to view.

getDiffBody doesn't tell the caller why it failed, so there may be a better way to do this.
includes/api/ApiComparePages.php