Changeset 10553 for trunk/include
- Timestamp:
- Apr 22, 2011, 12:35:16 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/ws_functions.inc.php
r10538 r10553 2674 2674 } 2675 2675 2676 $resize_params = array('maxwidth', 'maxheight', 'quality' );2676 $resize_params = array('maxwidth', 'maxheight', 'quality', 'crop', 'follow_orientation'); 2677 2677 $type = $params['type'] == 'thumbnail' ? 'thumb' : 'websize'; 2678 2678 foreach ($resize_params as $param) 2679 2679 { 2680 if (empty($params[$param]) )2680 if (empty($params[$param]) and isset($conf['upload_form_'.$type.'_'.$param])) 2681 2681 $params[$param] = $conf['upload_form_'.$type.'_'.$param]; 2682 2682 } … … 2711 2711 $params['maxheight'], 2712 2712 $params['quality'], 2713 true 2713 true, 2714 get_boolean($params['crop']), 2715 get_boolean($params['follow_orientation']) 2714 2716 ); 2715 2717 return true;
Note: See TracChangeset
for help on using the changeset viewer.