aboutsummaryrefslogtreecommitdiffstats
path: root/includes/Linker.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/Linker.php')
-rw-r--r--includes/Linker.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/Linker.php b/includes/Linker.php
index bf25abd7fbbf..40e1390ea287 100644
--- a/includes/Linker.php
+++ b/includes/Linker.php
@@ -406,7 +406,7 @@ class Linker {
$wopt = User::getDefaultOption( 'thumbsize' );
}
- $width = $wgThumbLimits[$wopt];
+ $width = min( $img->getWidth(), $wgThumbLimits[$wopt] );
}
return $prefix.$this->makeThumbLinkObj( $img, $label, $alt, $align, $width, $height, $framed, $manual_thumb ).$postfix;