From 6dc68f577700be8b3134917f507b492691ffb12b Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Sat, 7 Jun 2008 09:02:36 +0000 Subject: [PATCH] Use new calling convention for ImageGallery::add() and ImageGallery::insert() --- includes/CategoryPage.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/includes/CategoryPage.php b/includes/CategoryPage.php index eb4912ed7c..9a3d5b737b 100644 --- a/includes/CategoryPage.php +++ b/includes/CategoryPage.php @@ -170,11 +170,10 @@ class CategoryViewer { */ function addImage( Title $title, $sortkey, $pageLength, $isRedirect = false ) { if ( $this->showGallery ) { - $image = wfLocalFile( $title ); if( $this->flip ) { - $this->gallery->insert( $image ); + $this->gallery->insert( $title ); } else { - $this->gallery->add( $image ); + $this->gallery->add( $title ); } } else { $this->addPage( $title, $sortkey, $pageLength, $isRedirect ); -- 2.20.1