summaryrefslogtreecommitdiffstats
path: root/system/core
diff options
context:
space:
mode:
authorThor (atiredmachine) <thor@bandwidthbeta.com>2012-01-25 06:39:16 +0100
committerThor (atiredmachine) <thor@bandwidthbeta.com>2012-01-25 06:39:16 +0100
commit1d0661a8bb4407ac9b0f9043f7952f8ffae8ee66 (patch)
tree1f4f70b85d98385b447d6085918b9fa423221bab /system/core
parenta2ae6e1e917b1d8f4aabb121143184135a42c80a (diff)
Changed function to use mimetype as type
Diffstat (limited to 'system/core')
-rwxr-xr-xsystem/core/Output.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/system/core/Output.php b/system/core/Output.php
index 57d07ca7b..47c00acd8 100755
--- a/system/core/Output.php
+++ b/system/core/Output.php
@@ -577,11 +577,11 @@ class CI_Output {
* @param string
* @return string
*/
- public function minify($output,$type='html')
+ public function minify($output,$type='text/html')
{
switch ($type)
{
- case 'html':
+ case 'text/html':
// Keep track of <pre> <code> and <textarea> tags as
// they were before processing.
@@ -594,7 +594,7 @@ class CI_Output {
preg_match_all('{<style.+</style>}msU',$output,$style_clean);
foreach ($style_clean[0] as $s)
{
- $output = str_replace($s, $this->minify($s,'css'), $output);
+ $output = str_replace($s, $this->minify($s,'text/css'), $output);
}
// Replace multiple spaces with a single space.
@@ -614,7 +614,7 @@ class CI_Output {
break;
- case 'css':
+ case 'text/css':
// Remove spaces around curly brackets, colons, and semi-colons
$output = preg_replace('!\s*(:|;|}|{)\s*!','$1',$output);