diff options
author | Andrey Andreev <narf@devilix.net> | 2014-01-10 15:21:07 +0100 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2014-01-10 15:21:07 +0100 |
commit | 9916bfc126b0d6efa337740b263f123c5367fc55 (patch) | |
tree | 41ebee171fcfe081b885cddec8d0c7f72e02a4fe /system/core | |
parent | 155ee7231c0ef72dc362c7d6423b2e4600024d3c (diff) |
Use config_item() in CI_Output::__construct()
Diffstat (limited to 'system/core')
-rw-r--r-- | system/core/Output.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/system/core/Output.php b/system/core/Output.php index d2005cc41..cdb92b3c6 100644 --- a/system/core/Output.php +++ b/system/core/Output.php @@ -120,12 +120,10 @@ class CI_Output { */ public function __construct() { - global $CFG; - $this->_zlib_oc = (bool) @ini_get('zlib.output_compression'); $this->_compress_output = ( $this->_zlib_oc === FALSE - && $CFG->item('compress_output') === TRUE + && config_item('compress_output') === TRUE && extension_loaded('zlib') ); |