Changeset 10553 for trunk/admin/batch_manager_global.php
- Timestamp:
- 04/22/11 00:35:16 (2 years ago)
- Files:
-
- 1 modified
-
trunk/admin/batch_manager_global.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/batch_manager_global.php
r10454 r10553 418 418 array_push($page['warnings'], sprintf(l10n('%s thumbnails can not be regenerated'), $_POST['regenerateError'])); 419 419 420 $update_fields = array('thumb_maxwidth', 'thumb_maxheight', 'thumb_quality' );420 $update_fields = array('thumb_maxwidth', 'thumb_maxheight', 'thumb_quality', 'thumb_crop', 'thumb_follow_orientation'); 421 421 } 422 422 … … 438 438 foreach ($update_fields as $field) 439 439 { 440 $value = null; 441 if (!empty($_POST[$field])) 440 if (is_bool($upload_form_config[$field]['default'])) 442 441 { 443 $value = $_POST[$field]; 444 } 445 446 if (preg_match($upload_form_config[$field]['pattern'], $value) 447 and $value >= $upload_form_config[$field]['min'] 448 and $value <= $upload_form_config[$field]['max']) 449 { 450 $conf['upload_form_'.$field] = $value; 451 $updates[] = array( 442 $value = isset($_POST[$field]); 443 444 $updates[] = array( 452 445 'param' => 'upload_form_'.$field, 453 'value' => $value446 'value' => boolean_to_string($value) 454 447 ); 455 448 } 456 449 else 457 450 { 458 $updates = null; 459 break; 451 $value = null; 452 if (!empty($_POST[$field])) 453 { 454 $value = $_POST[$field]; 455 } 456 457 if (preg_match($upload_form_config[$field]['pattern'], $value) 458 and $value >= $upload_form_config[$field]['min'] 459 and $value <= $upload_form_config[$field]['max']) 460 { 461 $conf['upload_form_'.$field] = $value; 462 $updates[] = array( 463 'param' => 'upload_form_'.$field, 464 'value' => $value 465 ); 466 } 467 else 468 { 469 $updates = null; 470 break; 471 } 460 472 } 461 473 $form_values[$field] = $value;
![(please configure the [header_logo] section in trac.ini)](http://piwigo.org/screenshots/piwigo_logo_on_white.png)