projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d047ee4
)
Images.php
author
Alan Knowles
<alan@roojs.com>
Wed, 23 May 2012 01:44:50 +0000
(09:44 +0800)
committer
Alan Knowles
<alan@roojs.com>
Wed, 23 May 2012 01:44:50 +0000
(09:44 +0800)
Images.php
patch
|
blob
|
history
diff --git
a/Images.php
b/Images.php
index
ee33318
..
454f416
100644
(file)
--- a/
Images.php
+++ b/
Images.php
@@
-238,7
+238,16
@@
class Pman_Core_Images extends Pman
if (count($type) > 2 && $type[1] == 'Thumb') {
$thumbsize = $type[2];
}
- if ($attr)
+ if (!empty($attr['width']) || !empty($attr['height']) )
+ {
+ // no support for %...
+ $thumbsize =
+ (empty($attr['width']) ? '0' : $attr['width'] * 1) .
+ 'x' .
+ (empty($attr['height']) ? '0' : $attr['height'] * 1);
+
+
+ }