Changeset 13240 for trunk/admin/derivatives.php
- Timestamp:
- Feb 18, 2012, 9:46:46 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/derivatives.php
r13035 r13240 53 53 continue; 54 54 55 $v = intval($pderivative['w']); 56 if ($v<=0 || $v<=$prev_w) 57 { 58 $errors[$type]['w'] = '>'.$prev_w; 59 } 60 $v = intval($pderivative['h']); 61 if ($v<=0 || $v<=$prev_h) 62 { 63 $errors[$type]['h'] = '>'.$prev_h; 64 } 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 } 65 85 $v = intval($pderivative['crop']); 66 86 if ($v<0 || $v>100)
Note: See TracChangeset
for help on using the changeset viewer.