r82510 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r82509‎ | r82510 | r82511 >
Date:13:59, 20 February 2011
Author:reedy
Status:ok
Tags:
Comment:
Followup r82509, prefix the code for urlwidth too
Modified paths:
  • /trunk/phase3/includes/api/ApiQueryImageInfo.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiQueryImageInfo.php
@@ -500,7 +500,7 @@
501501 public function getPossibleErrors() {
502502 $p = $this->getModulePrefix();
503503 return array_merge( parent::getPossibleErrors(), array(
504 - array( 'code' => 'iiurlwidth', 'info' => "{$p}urlheight cannot be used without {$p}urlwidth" ),
 504+ array( 'code' => "{$p}urlwidth", 'info' => "{$p}urlheight cannot be used without {$p}urlwidth" ),
505505 array( 'code' => 'urlparam', 'info' => "Invalid value for {$p}urlparam" ),
506506 array( 'code' => 'urlparam_no_width', 'info' => "{$p}urlparam requires {$p}urlwidth" ),
507507 array( 'code' => 'urlparam_urlwidth_mismatch', 'info' => "The width set in {$p}urlparm doesnt't " .

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r82509Remove error duplication in ApiQueryStashImageInfo by using non hardcoded pre...reedy13:51, 20 February 2011

Status & tagging log