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:
405b543
)
(bug 1016) Fix handling of lines omitting Image: in a <gallery> tag
author
Jens Frank
<jeluf@users.mediawiki.org>
Tue, 7 Dec 2004 23:44:04 +0000
(23:44 +0000)
committer
Jens Frank
<jeluf@users.mediawiki.org>
Tue, 7 Dec 2004 23:44:04 +0000
(23:44 +0000)
includes/ImageGallery.php
patch
|
blob
|
history
diff --git
a/includes/ImageGallery.php
b/includes/ImageGallery.php
index
2b33d54
..
acbfc9b
100644
(file)
--- a/
includes/ImageGallery.php
+++ b/
includes/ImageGallery.php
@@
-90,6
+90,15
@@
class ImageGallery
$name = $img->getName();
$nt = $img->getTitle();
+ // Not an image. Just print the name and skip.
+ if ( $nt->getNamespace() != NS_IMAGE ) {
+ $s .= '<td valign="top" width="150px" style="background-color:#F0F0F0;">' .
+ $nt->getText() . '</td>' . (($i%4==3) ? "</tr>\n" : '');
+ $i++;
+
+ continue;
+ }
+
//TODO
//$ul = $sk->makeLink( $wgContLang->getNsText( Namespace::getUser() ) . ":{$ut}", $ut );