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:
00e5822
)
Removed image resizing test, now done in Image::createThumb.
author
Jens Frank
<jeluf@users.mediawiki.org>
Thu, 29 Apr 2004 05:00:18 +0000
(
05:00
+0000)
committer
Jens Frank
<jeluf@users.mediawiki.org>
Thu, 29 Apr 2004 05:00:18 +0000
(
05:00
+0000)
The web browser will have to resize the image
includes/Skin.php
patch
|
blob
|
history
diff --git
a/includes/Skin.php
b/includes/Skin.php
index
c19b90e
..
35b6f9e
100644
(file)
--- a/
includes/Skin.php
+++ b/
includes/Skin.php
@@
-1783,10
+1783,10
@@
class Skin {
$thumbUrl = $url;
} else {
$boxheight = intval( $height/($width/$boxwidth) );
- if ( $boxwidth > $width ) {
-
$boxwidth = $width;
-
$boxheight = $height;
- }
+
#
if ( $boxwidth > $width ) {
+
#
$boxwidth = $width;
+
#
$boxheight = $height;
+
#
}
$thumbUrl = $img->createThumb( $boxwidth );
}
$oboxwidth = $boxwidth + 2;