dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f9d821e
)
BC hack for thumbnail sizes
author
Tim Starling
<tstarling@users.mediawiki.org>
Tue, 1 May 2007 21:30:46 +0000
(21:30 +0000)
committer
Tim Starling
<tstarling@users.mediawiki.org>
Tue, 1 May 2007 21:30:46 +0000
(21:30 +0000)
includes/Linker.php
patch
|
blob
|
history
diff --git
a/includes/Linker.php
b/includes/Linker.php
index
b12e2ad
..
82dca04
100644
(file)
--- a/
includes/Linker.php
+++ b/
includes/Linker.php
@@
-531,6
+531,12
@@
class Linker {
// Use image dimensions, don't scale
$thumb = $img->getUnscaledThumb( $page );
} else {
+ # Do not present an image bigger than the source, for bitmap-style images
+ # This is a hack to maintain compatibility with arbitrary pre-1.10 behaviour
+ $srcWidth = $img->getWidth( $page );
+ if ( $srcWidth && !$img->mustRender() && $params['width'] > $srcWidth ) {
+ $params['width'] = $srcWidth;
+ }
$thumb = $img->transform( $params );
}