dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c3ab55a
)
Use new calling convention for ImageGallery::add() and ImageGallery::insert()
author
Tim Starling
<tstarling@users.mediawiki.org>
Sat, 7 Jun 2008 09:02:36 +0000
(09:02 +0000)
committer
Tim Starling
<tstarling@users.mediawiki.org>
Sat, 7 Jun 2008 09:02:36 +0000
(09:02 +0000)
includes/CategoryPage.php
patch
|
blob
|
history
diff --git
a/includes/CategoryPage.php
b/includes/CategoryPage.php
index
eb4912e
..
9a3d5b7
100644
(file)
--- 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( $
imag
e );
+ $this->gallery->insert( $
titl
e );
} else {
- $this->gallery->add( $
imag
e );
+ $this->gallery->add( $
titl
e );
}
} else {
$this->addPage( $title, $sortkey, $pageLength, $isRedirect );