aboutsummaryrefslogtreecommitdiffstats
path: root/includes/ImageGallery.php
diff options
context:
space:
mode:
authorTim Starling <tstarling@users.mediawiki.org>2006-07-05 06:06:58 +0000
committerTim Starling <tstarling@users.mediawiki.org>2006-07-05 06:06:58 +0000
commitd052acf2206625ee475a70442c96d6435abf66c7 (patch)
treec4d496d665f5e8d2c67271bdf4a93404d1b0991f /includes/ImageGallery.php
parent5bd1f1f83464f4e0665812b09624926080b90659 (diff)
downloadmediawikicore-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.php4
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>';