r89552 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r89551‎ | r89552 | r89553 >
Date:09:40, 6 June 2011
Author:reedy
Status:ok
Tags:
Comment:
Followup r89550, add new error message to getPossibleErrors
Modified paths:
  • /trunk/phase3/includes/api/ApiComparePages.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiComparePages.php
@@ -114,6 +114,7 @@
115115 return array_merge( parent::getPossibleErrors(), array(
116116 array( 'code' => 'inputneeded', 'info' => 'A title or a revision is needed' ),
117117 array( 'invalidtitle', 'title' ),
 118+ 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.' ),
118119 ) );
119120 }
120121

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r89550ApiComparePages: Throw an error if getDiffBody returns false, instead of blan...gurch09:22, 6 June 2011

Status & tagging log