From 64725685982563016b503b81c18a4041da93e553 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Wed, 9 Apr 2008 12:09:15 +0000 Subject: [PATCH] Use wfLocalFile() instead of create an Image object, was throwing an E_USER_NOTICE. Thanks to Grondin for reporting it. --- includes/CategoryPage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/CategoryPage.php b/includes/CategoryPage.php index a6d2c8e047..5f293d1729 100644 --- a/includes/CategoryPage.php +++ b/includes/CategoryPage.php @@ -170,7 +170,7 @@ class CategoryViewer { */ function addImage( Title $title, $sortkey, $pageLength, $isRedirect = false ) { if ( $this->showGallery ) { - $image = new Image( $title ); + $image = wfLocalFile( $title ); if( $this->flip ) { $this->gallery->insert( $image ); } else { -- 2.20.1