summaryrefslogtreecommitdiffstats
path: root/system/core/Output.php
diff options
context:
space:
mode:
authorGreg Aker <greg@gregaker.net>2011-12-27 23:23:47 +0100
committerGreg Aker <greg@gregaker.net>2011-12-27 23:23:47 +0100
commitd96f88277c1e9a4c069c2e2ee3d779385549f31a (patch)
tree5d3f9fb534ca9fa17635ddcd8c3d38abe51deec2 /system/core/Output.php
parentd459cbb96d9c9703ef6c62756240b7c612835e5c (diff)
Revert "Abstracting the loading of files in the config directory depending on environments."
Diffstat (limited to 'system/core/Output.php')
-rwxr-xr-xsystem/core/Output.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/system/core/Output.php b/system/core/Output.php
index 4d1036ceb..9727a184f 100755
--- a/system/core/Output.php
+++ b/system/core/Output.php
@@ -106,7 +106,15 @@ class CI_Output {
$this->_zlib_oc = @ini_get('zlib.output_compression');
// Get mime types for later
- load_environ_config('mimes');
+ if (defined('ENVIRONMENT') AND file_exists(APPPATH.'config/'.ENVIRONMENT.'/mimes.php'))
+ {
+ include APPPATH.'config/'.ENVIRONMENT.'/mimes.php';
+ }
+ else
+ {
+ include APPPATH.'config/mimes.php';
+ }
+
$this->mime_types = $mimes;