summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
Diffstat (limited to 'system')
-rwxr-xr-xsystem/core/Output.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/system/core/Output.php b/system/core/Output.php
index 673ceb0ee..c0de24bb9 100755
--- a/system/core/Output.php
+++ b/system/core/Output.php
@@ -231,12 +231,13 @@ class CI_Output {
*/
public function get_current_content_type()
{
- foreach($this->headers as $header){
- if(preg_match('/^Content-Type/', $header[0])){
- return str_replace('Content-Type: ', '', $header[0]);
- }
+ foreach ($this->headers as $header){
+ if (preg_match('/^Content-Type/', $header[0]))
+ {
+ return str_replace('Content-Type: ', '', $header[0]);
}
- return 'text/html';
+ }
+ return 'text/html';
}
// --------------------------------------------------------------------