From 5c63ca6e21fb9f6ef09904db59eade425b494a05 Mon Sep 17 00:00:00 2001 From: Jens Frank Date: Tue, 7 Dec 2004 23:44:04 +0000 Subject: [PATCH] (bug 1016) Fix handling of lines omitting Image: in a tag --- includes/ImageGallery.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/includes/ImageGallery.php b/includes/ImageGallery.php index 2b33d54e01..acbfc9b95b 100644 --- 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 .= '' . + $nt->getText() . '' . (($i%4==3) ? "\n" : ''); + $i++; + + continue; + } + //TODO //$ul = $sk->makeLink( $wgContLang->getNsText( Namespace::getUser() ) . ":{$ut}", $ut ); -- 2.20.1