Follow-up r81971: Fix error handling
authorBryan Tong Minh <btongminh@users.mediawiki.org>
Fri, 11 Feb 2011 15:42:28 +0000 (15:42 +0000)
committerBryan Tong Minh <btongminh@users.mediawiki.org>
Fri, 11 Feb 2011 15:42:28 +0000 (15:42 +0000)
includes/api/ApiQueryImageInfo.php

index 0a8243d..d52fb82 100644 (file)
@@ -325,7 +325,7 @@ class ApiQueryImageInfo extends ApiQueryBase {
                                        }
                                }
                                if ( $mto && $mto->isError() ) {
-                                       $this->setWarning( 'Error creating thumbnail for ' . $file->getName . 
+                                       $this->setWarning( 'Error creating thumbnail for ' . $file->getName() . 
                                                ': ' . $mto->toText() );
                                }
                        }