aboutsummaryrefslogtreecommitdiffstats
path: root/includes/ImageGallery.php
diff options
context:
space:
mode:
authorJens Frank <jeluf@users.mediawiki.org>2006-08-13 17:34:48 +0000
committerJens Frank <jeluf@users.mediawiki.org>2006-08-13 17:34:48 +0000
commit7f7e79022bfd421e49084b089e74c7a16b77bc03 (patch)
treee627c5d659c86fd906746ce27b3135235ef7eafd /includes/ImageGallery.php
parent4c6d1b3812ba97c5026742b607ebca88aca26661 (diff)
downloadmediawikicore-7f7e79022bfd421e49084b089e74c7a16b77bc03.tar.gz
mediawikicore-7f7e79022bfd421e49084b089e74c7a16b77bc03.zip
(bug 6420) Render thumbnails for djvu images, show multipage preview on image page
Notes
Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/16036
Diffstat (limited to 'includes/ImageGallery.php')
-rw-r--r--includes/ImageGallery.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/ImageGallery.php b/includes/ImageGallery.php
index ae2e4a709813..7ff456b66629 100644
--- a/includes/ImageGallery.php
+++ b/includes/ImageGallery.php
@@ -82,6 +82,7 @@ class ImageGallery
*/
function add( $image, $html='' ) {
$this->mImages[] = array( &$image, $html );
+ wfDebug( "ImageGallery::add " . $image->getName() . "\n" );
}
/**
@@ -157,8 +158,7 @@ class ImageGallery
# The image is blacklisted, just show it as a text link.
$thumbhtml = '<div style="height: 152px;">'
. $sk->makeKnownLinkObj( $nt, htmlspecialchars( $nt->getText() ) ) . '</div>';
- }
- else if( !( $thumb = $img->getThumbnail( 120, 120, $wgGenerateThumbnailOnParse ) ) ) {
+ } else if( !( $thumb = $img->getThumbnail( 120, 120, $wgGenerateThumbnailOnParse ) ) ) {
# Error generating thumbnail.
$thumbhtml = '<div style="height: 152px;">'
. htmlspecialchars( $img->getLastError() ) . '</div>';