From 0680ff6df2f5ee83b69221ebf66bfb145972b880 Mon Sep 17 00:00:00 2001 From: Bryan Tong Minh Date: Sat, 12 Feb 2011 14:49:34 +0000 Subject: [PATCH] Follow-up r81971: Can't use $this->setWarning() in static context, so append the error to the imageinfo array instead --- includes/api/ApiQueryImageInfo.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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(); -- 2.20.1