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:
b1e7ca8
)
manual thumbnail option fix
author
Magnus Manske
<magnusmanske@users.mediawiki.org>
Sat, 10 Jul 2004 20:00:41 +0000
(20:00 +0000)
committer
Magnus Manske
<magnusmanske@users.mediawiki.org>
Sat, 10 Jul 2004 20:00:41 +0000
(20:00 +0000)
includes/Skin.php
patch
|
blob
|
history
diff --git
a/includes/Skin.php
b/includes/Skin.php
index
2df5c7c
..
ab40ff8
100644
(file)
--- a/
includes/Skin.php
+++ b/
includes/Skin.php
@@
-1828,7
+1828,7
@@
class Skin {
print 'rescaling by factor '. $height / $img->getHeight() . "<br>\n";
$width = $img->getWidth() * $height / $img->getHeight();
}
- $url = $img->createThumb( $width );
+
if ( '' == $manual_thumb )
$url = $img->createThumb( $width );
}
} # endif $wgUseImageResize
@@
-1885,7
+1885,7
@@
class Skin {
} else {
$boxheight = $h;
}
- $thumbUrl = $img->createThumb( $boxwidth );
+
if ( '' == $manual_thumb )
$thumbUrl = $img->createThumb( $boxwidth );
}
if ( $manual_thumb != '' ) # Use manually specified thumbnail