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:
62177bc
)
Fix for not being able to override thumbnail height
author
OverlordQ
<overlordq@users.mediawiki.org>
Wed, 3 Feb 2010 06:21:25 +0000
(06:21 +0000)
committer
OverlordQ
<overlordq@users.mediawiki.org>
Wed, 3 Feb 2010 06:21:25 +0000
(06:21 +0000)
includes/Linker.php
patch
|
blob
|
history
diff --git
a/includes/Linker.php
b/includes/Linker.php
index
5d1f096
..
be2cc90
100644
(file)
--- a/
includes/Linker.php
+++ b/
includes/Linker.php
@@
-468,7
+468,7
@@
class Linker {
if ( $file && !isset( $hp['width'] ) ) {
$hp['width'] = $file->getWidth( $page );
- if(
isset( $fp['thumbnail'] ) || isset( $fp['framed'] ) || isset( $fp['frameless'] ) || !$hp['width
'] ) {
+ if(
( isset( $fp['thumbnail'] ) || isset( $fp['framed'] ) || isset( $fp['frameless'] ) ) && !$hp['height
'] ) {
$wopt = $wgUser->getOption( 'thumbsize' );
if( !isset( $wgThumbLimits[$wopt] ) ) {