Followup r82509, prefix the code for urlwidth too
authorSam Reed <reedy@users.mediawiki.org>
Sun, 20 Feb 2011 13:59:40 +0000 (13:59 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Sun, 20 Feb 2011 13:59:40 +0000 (13:59 +0000)
includes/api/ApiQueryImageInfo.php

index cd82be5..f0e612a 100644 (file)
@@ -500,7 +500,7 @@ class ApiQueryImageInfo extends ApiQueryBase {
        public function getPossibleErrors() {
                $p = $this->getModulePrefix();
                return array_merge( parent::getPossibleErrors(), array(
-                       array( 'code' => 'iiurlwidth', 'info' => "{$p}urlheight cannot be used without {$p}urlwidth" ),
+                       array( 'code' => "{$p}urlwidth", 'info' => "{$p}urlheight cannot be used without {$p}urlwidth" ),
                        array( 'code' => 'urlparam', 'info' => "Invalid value for {$p}urlparam" ),
                        array( 'code' => 'urlparam_no_width', 'info' => "{$p}urlparam requires {$p}urlwidth" ),
                        array( 'code' => 'urlparam_urlwidth_mismatch', 'info' => "The width set in {$p}urlparm doesnt't " .