From: Ævar Arnfjörð Bjarmason Date: Tue, 3 May 2005 09:02:31 +0000 (+0000) Subject: * (bug 2056) Since we added img_type to the schema we return 0 if the image X-Git-Tag: 1.5.0alpha1~2 X-Git-Url: https://git.cyclocoop.org/%28%28?a=commitdiff_plain;h=3d5da489c91af9c8859ecd5a4e6d373045a1a45c;p=lhc%2Fweb%2Fwiklou.git * (bug 2056) Since we added img_type to the schema we return 0 if the image type is unrecognized, not '', whoever changed that forgot to update this if statement. --- diff --git a/includes/ImagePage.php b/includes/ImagePage.php index 4560214b44..5a88777143 100644 --- a/includes/ImagePage.php +++ b/includes/ImagePage.php @@ -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();