index.php
changeset 1226 de56132c008d
parent 1149 be4feea8872a
child 1227 bdac73ed481e
equal deleted inserted replaced
1225:4c6da61e613e 1226:de56132c008d
    22 // decide on HTML compacting
    22 // decide on HTML compacting
    23 $aggressive_optimize_html = !defined('ENANO_DEBUG') && !isset($_GET['nocompress']);
    23 $aggressive_optimize_html = !defined('ENANO_DEBUG') && !isset($_GET['nocompress']);
    24 
    24 
    25 // Set up gzip encoding before any output is sent
    25 // Set up gzip encoding before any output is sent
    26 global $do_gzip;
    26 global $do_gzip;
    27 // FIXME: make this configurable
    27 $do_gzip = !defined('ENANO_DEBUG') && getConfig('gzip_output', false) == 1 && !isset($_GET['disable_builtin_gzip']);
    28 $do_gzip = !defined('ENANO_DEBUG');
       
    29 
    28 
    30 error_reporting(E_ALL);
    29 error_reporting(E_ALL);
    31 
    30 
    32 if($aggressive_optimize_html || $do_gzip)
    31 if($aggressive_optimize_html || $do_gzip)
    33 {
    32 {