Changeset 13258 for trunk/admin/derivatives.php
- Timestamp:
- Feb 19, 2012, 8:59:22 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/derivatives.php
r13240 r13258 53 53 continue; 54 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 55 if ($type==IMG_THUMB) 56 { 57 $w = intval($pderivative['w']); 58 if ($w<=0) 59 { 60 $errors[$type]['w'] = '>0'; 61 } 62 $h = intval($pderivative['h']); 63 if ($h<=0) 64 { 65 $errors[$type]['h'] = '>0'; 66 } 67 if (max($w,$h) <= $prev_w) 68 { 69 $errors[$type]['w'] = $errors[$type]['h'] = '>'.$prev_w; 70 } 71 } 72 else 73 { 74 $v = intval($pderivative['w']); 75 if ($v<=0 || $v<=$prev_w) 76 { 77 $errors[$type]['w'] = '>'.$prev_w; 78 } 79 $v = intval($pderivative['h']); 80 if ($v<=0 || $v<=$prev_h) 81 { 82 $errors[$type]['h'] = '>'.$prev_h; 83 } 84 } 85 85 $v = intval($pderivative['crop']); 86 86 if ($v<0 || $v>100)
Note: See TracChangeset
for help on using the changeset viewer.