From 9916bfc126b0d6efa337740b263f123c5367fc55 Mon Sep 17 00:00:00 2001 From: Andrey Andreev Date: Fri, 10 Jan 2014 16:21:07 +0200 Subject: Use config_item() in CI_Output::__construct() --- system/core/Output.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'system/core/Output.php') 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') ); -- cgit v1.2.3-24-g4f1b