From 3d5da489c91af9c8859ecd5a4e6d373045a1a45c Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Tue, 3 May 2005 09:02:31 +0000 Subject: [PATCH] * (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. --- includes/ImagePage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.20.1