diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-12-07 10:46:49 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-12-07 10:46:49 +0000 |
commit | 914ccb6f03e6d7e7de62b9084dd7770f89092ee5 (patch) | |
tree | 8c72a2d9826e8ea5b36a7755ed6df2a61999d016 /modules/system | |
parent | 81ed7e4987f6316d3c6012d285cc30f95de010dd (diff) | |
download | brdo-914ccb6f03e6d7e7de62b9084dd7770f89092ee5.tar.gz brdo-914ccb6f03e6d7e7de62b9084dd7770f89092ee5.tar.bz2 |
Neither of the optimnization checkboxes were selected on the performance page, due to data type mismatch. Noticed while testing #113607.
Diffstat (limited to 'modules/system')
-rw-r--r-- | modules/system/system.admin.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/system/system.admin.inc b/modules/system/system.admin.inc index e48c583a7..2693cebd7 100644 --- a/modules/system/system.admin.inc +++ b/modules/system/system.admin.inc @@ -1235,7 +1235,7 @@ function system_performance_settings() { $form['bandwidth_optimizations']['preprocess_css'] = array( '#type' => 'radios', '#title' => t('Optimize CSS files'), - '#default_value' => variable_get('preprocess_css', 0) && $is_writable, + '#default_value' => intval(variable_get('preprocess_css', 0) && $is_writable), '#disabled' => !$is_writable, '#options' => array(t('Disabled'), t('Enabled')), '#description' => t('This option can interfere with theme development and should only be enabled in a production environment.'), @@ -1243,7 +1243,7 @@ function system_performance_settings() { $form['bandwidth_optimizations']['preprocess_js'] = array( '#type' => 'radios', '#title' => t('Optimize JavaScript files'), - '#default_value' => variable_get('preprocess_js', 0) && $is_writable, + '#default_value' => intval(variable_get('preprocess_js', 0) && $is_writable), '#disabled' => !$is_writable, '#options' => array(t('Disabled'), t('Enabled')), '#description' => t('This option can interfere with module development and should only be enabled in a production environment.'), |