summaryrefslogtreecommitdiffstats
path: root/system/core/Output.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2014-01-10 15:21:07 +0100
committerAndrey Andreev <narf@devilix.net>2014-01-10 15:21:07 +0100
commit9916bfc126b0d6efa337740b263f123c5367fc55 (patch)
tree41ebee171fcfe081b885cddec8d0c7f72e02a4fe /system/core/Output.php
parent155ee7231c0ef72dc362c7d6423b2e4600024d3c (diff)
Use config_item() in CI_Output::__construct()
Diffstat (limited to 'system/core/Output.php')
-rw-r--r--system/core/Output.php4
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')
);