Patch by: Jitse Niesen <j.niesen@latrobe.edu.au>
* Updated maintenance/transstat.php so it can show duplicate messages
* Improvements to update scripts; print out the version, check for superuser credentials
before attempting a connection, and produce a friendlier error if the connection fails
+* (bug 5005): Fix XHTML <gallery> output.
== Compatibility ==
// Not an image. Just print the name and skip.
if ( $nt->getNamespace() != NS_IMAGE ) {
- $s .= '<td><div class="gallerybox" style="height: 152px;">' .
- htmlspecialchars( $nt->getText() ) . '</div></td>' . (($i%4==3) ? "</tr>\n" : '');
+ $s .=
+ (($i%4==0) ? "<tr>\n" : '') .
+ '<td><div class="gallerybox" style="height: 152px;">' .
+ htmlspecialchars( $nt->getText() ) . '</div></td>' .
+ (($i%4==3) ? "</tr>\n" : '');
$i++;
continue;