|
@@ 816-824 (lines=9) @@
|
| 813 |
|
); |
| 814 |
|
|
| 815 |
|
// Convert crop settings from string to array |
| 816 |
|
if (isset($args['crop']) && !is_array($args['crop'])) { |
| 817 |
|
$pices = explode(',', $args['crop']); |
| 818 |
|
$args['crop'] = array( |
| 819 |
|
'width' => $pices[0], |
| 820 |
|
'height' => $pices[1], |
| 821 |
|
'start_x' => $pices[2], |
| 822 |
|
'start_y' => $pices[3], |
| 823 |
|
); |
| 824 |
|
} |
| 825 |
|
|
| 826 |
|
// Convert area settings from string to array |
| 827 |
|
if (isset($args['area']) && !is_array($args['area'])) { |
|
@@ 827-835 (lines=9) @@
|
| 824 |
|
} |
| 825 |
|
|
| 826 |
|
// Convert area settings from string to array |
| 827 |
|
if (isset($args['area']) && !is_array($args['area'])) { |
| 828 |
|
$pices = explode(',', $args['area']); |
| 829 |
|
$args['area'] = array( |
| 830 |
|
'top' => $pices[0], |
| 831 |
|
'right' => $pices[1], |
| 832 |
|
'bottom' => $pices[2], |
| 833 |
|
'left' => $pices[3], |
| 834 |
|
); |
| 835 |
|
} |
| 836 |
|
|
| 837 |
|
// Convert filter settings from array of string to array of array |
| 838 |
|
if (isset($args['filters']) && is_array($args['filters'])) { |