projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8efe3b7
)
DataObjects/Images.php
author
Chris
<chris@roojs.com>
Mon, 17 Jun 2013 09:04:04 +0000
(17:04 +0800)
committer
Chris
<chris@roojs.com>
Mon, 17 Jun 2013 09:04:04 +0000
(17:04 +0800)
DataObjects/Images.php
patch
|
blob
|
history
diff --git
a/DataObjects/Images.php
b/DataObjects/Images.php
index
413b283
..
582fd4e
100644
(file)
--- a/
DataObjects/Images.php
+++ b/
DataObjects/Images.php
@@
-440,7
+440,7
@@
class Pman_Core_DataObjects_Images extends DB_DataObject
//$size = max(100, (int) $size);
//$size = min(1024, (int) $size);
// the size should 200x150 to convert
- $size =
explode('x
', $size);
+ $size =
preg_split('/(x|c)/
', $size);
if(empty($size[1])){
$size[1] = 0;
}