From: Sam Reed Date: Mon, 6 Jun 2011 09:40:45 +0000 (+0000) Subject: Followup r89550, add new error message to getPossibleErrors X-Git-Tag: 1.31.0-rc.0~29675 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/bilan.php?a=commitdiff_plain;h=696d202e18c66211ce663d7ceb562abbc639a164;p=lhc%2Fweb%2Fwiklou.git Followup r89550, add new error message to getPossibleErrors --- diff --git a/includes/api/ApiComparePages.php b/includes/api/ApiComparePages.php index 38fce50bd4..cb77e7c1ac 100644 --- a/includes/api/ApiComparePages.php +++ b/includes/api/ApiComparePages.php @@ -114,6 +114,7 @@ class ApiComparePages extends ApiBase { return array_merge( parent::getPossibleErrors(), array( array( 'code' => 'inputneeded', 'info' => 'A title or a revision is needed' ), array( 'invalidtitle', 'title' ), + array( 'code' => 'baddiff', 'info' => 'The diff cannot be retrieved. Maybe one or both revisions do not exist or you do not have permission to view them.' ), ) ); }