Use new calling convention for ImageGallery::add() and ImageGallery::insert()
authorTim Starling <tstarling@users.mediawiki.org>
Sat, 7 Jun 2008 09:02:36 +0000 (09:02 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Sat, 7 Jun 2008 09:02:36 +0000 (09:02 +0000)
includes/CategoryPage.php

index eb4912e..9a3d5b7 100644 (file)
@@ -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 );