diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-03-07 07:36:27 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-03-07 07:36:27 +0000 |
commit | a2232c40eed8afee0a9b38b587e4895cc11c26da (patch) | |
tree | 677da0ade612462a53a94197bebb0b1f1e29c143 | |
parent | 05357ce6f73ba73941e060d6e8e801d011e89698 (diff) | |
download | brdo-a2232c40eed8afee0a9b38b587e4895cc11c26da.tar.gz brdo-a2232c40eed8afee0a9b38b587e4895cc11c26da.tar.bz2 |
#459980 follow-up by c960657: Further clean-ups to admin/settings/performance.
-rw-r--r-- | modules/system/system.admin.inc | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/modules/system/system.admin.inc b/modules/system/system.admin.inc index f4bc641a0..94f1e62cf 100644 --- a/modules/system/system.admin.inc +++ b/modules/system/system.admin.inc @@ -1659,17 +1659,14 @@ function system_performance_settings() { '#description' => t('External resources can be optimized automatically, which can reduce both the size and number of requests made to your website.') . $disabled_message, ); - // Do not allow Drupal to gzip pages if the server already does that. - if (strpos($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip') === FALSE) { - $js_hide = $cache == CACHE_DISABLED ? ' class="js-hide"' : ''; - $form['bandwidth_optimization']['page_compression'] = array( - '#type' => 'checkbox', - '#title' => t('Compress cached pages.'), - '#default_value' => variable_get('page_compression', TRUE), - '#prefix' => '<div id="page-compression-wrapper"' . $js_hide . '>', - '#suffix' => '</div>', - ); - } + $js_hide = $cache == CACHE_DISABLED ? ' class="js-hide"' : ''; + $form['bandwidth_optimization']['page_compression'] = array( + '#type' => 'checkbox', + '#title' => t('Compress cached pages.'), + '#default_value' => variable_get('page_compression', TRUE), + '#prefix' => '<div id="page-compression-wrapper"' . $js_hide . '>', + '#suffix' => '</div>', + ); $form['bandwidth_optimization']['preprocess_css'] = array( '#type' => 'checkbox', '#title' => t('Aggregate and compress CSS files into one file.'), |