equal
deleted
inserted
replaced
103 require_once('includes/js-compressor.php'); |
103 require_once('includes/js-compressor.php'); |
104 |
104 |
105 // try to gzip the output |
105 // try to gzip the output |
106 if ( !defined('ENANO_JSRES_SETUP_ONLY') ): |
106 if ( !defined('ENANO_JSRES_SETUP_ONLY') ): |
107 $do_gzip = false; |
107 $do_gzip = false; |
108 if ( isset($_SERVER['HTTP_ACCEPT_ENCODING']) ) |
108 if ( isset($_SERVER['HTTP_ACCEPT_ENCODING']) && getConfig('gzip_output', false) == 1 ) |
109 { |
109 { |
110 $acceptenc = str_replace(' ', '', strtolower($_SERVER['HTTP_ACCEPT_ENCODING'])); |
110 $acceptenc = str_replace(' ', '', strtolower($_SERVER['HTTP_ACCEPT_ENCODING'])); |
111 $acceptenc = explode(',', $acceptenc); |
111 $acceptenc = explode(',', $acceptenc); |
112 if ( in_array('gzip', $acceptenc) ) |
112 if ( in_array('gzip', $acceptenc) ) |
113 { |
113 { |