From: Tim Starling Date: Sat, 7 Jun 2008 09:02:36 +0000 (+0000) Subject: Use new calling convention for ImageGallery::add() and ImageGallery::insert() X-Git-Tag: 1.31.0-rc.0~47122 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=6dc68f577700be8b3134917f507b492691ffb12b;p=lhc%2Fweb%2Fwiklou.git Use new calling convention for ImageGallery::add() and ImageGallery::insert() --- 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 );