* (bug 2056) Since we added img_type to the schema we return 0 if the image
authorÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Tue, 3 May 2005 09:02:31 +0000 (09:02 +0000)
committerÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Tue, 3 May 2005 09:02:31 +0000 (09:02 +0000)
  type is unrecognized, not '', whoever changed that forgot to update this if
  statement.

includes/ImagePage.php

index 4560214..5a88777 100644 (file)
@@ -128,7 +128,7 @@ class ImagePage extends Article {
                $sk = $wgUser->getSkin();
 
                if ( $this->img->exists() ) {
-                       if ( $this->img->getType() != '' ) {
+                       if ( $this->img->getType() ) {
                                # image
                                $width = $this->img->getWidth();
                                $height = $this->img->getHeight();