From: Bryan Tong Minh Date: Sat, 12 Feb 2011 14:49:34 +0000 (+0000) Subject: Follow-up r81971: Can't use $this->setWarning() in static context, so append the... X-Git-Tag: 1.31.0-rc.0~32028 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22messagerie%22%29%20.%20%22?a=commitdiff_plain;h=0680ff6df2f5ee83b69221ebf66bfb145972b880;p=lhc%2Fweb%2Fwiklou.git Follow-up r81971: Can't use $this->setWarning() in static context, so append the error to the imageinfo array instead --- diff --git a/includes/api/ApiQueryImageInfo.php b/includes/api/ApiQueryImageInfo.php index d52fb821cd..530dd5931f 100644 --- a/includes/api/ApiQueryImageInfo.php +++ b/includes/api/ApiQueryImageInfo.php @@ -325,8 +325,7 @@ class ApiQueryImageInfo extends ApiQueryBase { } } if ( $mto && $mto->isError() ) { - $this->setWarning( 'Error creating thumbnail for ' . $file->getName() . - ': ' . $mto->toText() ); + $vals['thumberror'] = $mto->toText(); } } $vals['url'] = $file->getFullURL();