Index: trunk/phase3/includes/CategoryPage.php |
— | — | @@ -170,11 +170,10 @@ |
171 | 171 | */ |
172 | 172 | function addImage( Title $title, $sortkey, $pageLength, $isRedirect = false ) { |
173 | 173 | if ( $this->showGallery ) { |
174 | | - $image = wfLocalFile( $title ); |
175 | 174 | if( $this->flip ) { |
176 | | - $this->gallery->insert( $image ); |
| 175 | + $this->gallery->insert( $title ); |
177 | 176 | } else { |
178 | | - $this->gallery->add( $image ); |
| 177 | + $this->gallery->add( $title ); |
179 | 178 | } |
180 | 179 | } else { |
181 | 180 | $this->addPage( $title, $sortkey, $pageLength, $isRedirect ); |