Follow-up r81971: Can't use $this->setWarning() in static context, so append the...
authorBryan Tong Minh <btongminh@users.mediawiki.org>
Sat, 12 Feb 2011 14:49:34 +0000 (14:49 +0000)
committerBryan Tong Minh <btongminh@users.mediawiki.org>
Sat, 12 Feb 2011 14:49:34 +0000 (14:49 +0000)
includes/api/ApiQueryImageInfo.php

index d52fb82..530dd59 100644 (file)
@@ -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();