diff options
author | Tim Starling <tstarling@users.mediawiki.org> | 2006-07-05 06:06:58 +0000 |
---|---|---|
committer | Tim Starling <tstarling@users.mediawiki.org> | 2006-07-05 06:06:58 +0000 |
commit | d052acf2206625ee475a70442c96d6435abf66c7 (patch) | |
tree | c4d496d665f5e8d2c67271bdf4a93404d1b0991f /includes/ImageGallery.php | |
parent | 5bd1f1f83464f4e0665812b09624926080b90659 (diff) | |
download | mediawikicore-d052acf2206625ee475a70442c96d6435abf66c7.tar.gz mediawikicore-d052acf2206625ee475a70442c96d6435abf66c7.zip |
suppressing thumbnail generation in more places
Notes
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/15344
Diffstat (limited to 'includes/ImageGallery.php')
-rw-r--r-- | includes/ImageGallery.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/ImageGallery.php b/includes/ImageGallery.php index 01c78da0cf99..0935ac30ef84 100644 --- a/includes/ImageGallery.php +++ b/includes/ImageGallery.php @@ -133,7 +133,7 @@ class ImageGallery * */ function toHTML() { - global $wgLang, $wgIgnoreImageErrors; + global $wgLang, $wgIgnoreImageErrors, $wgGenerateThumbnailOnParse; $sk =& $this->getSkin(); @@ -158,7 +158,7 @@ class ImageGallery $thumbhtml = '<div style="height: 152px;">' . $sk->makeKnownLinkObj( $nt, htmlspecialchars( $nt->getText() ) ) . '</div>'; } - else if( !( $thumb = $img->getThumbnail( 120, 120 ) ) ) { + else if( !( $thumb = $img->getThumbnail( 120, 120, $wgGenerateThumbnailOnParse ) ) ) { # Error generating thumbnail. $thumbhtml = '<div style="height: 152px;">' . htmlspecialchars( $img->getLastError() ) . '</div>'; |