diff --git a/e107_handlers/js_manager.php b/e107_handlers/js_manager.php index 1bf0f9202..03bfaf48f 100644 --- a/e107_handlers/js_manager.php +++ b/e107_handlers/js_manager.php @@ -1493,6 +1493,11 @@ class e_jsmanager else { echo "\n\n"; + if(!empty($this->_cache_list['css_inline'])) + { + echo $this->_cache_list['css_inline']; + unset($this->_cache_list['css_inline']); + } } // Remove from list, anything we have added. @@ -1629,7 +1634,7 @@ class e_jsmanager /* remove tabs, spaces, newlines, etc. */ $minify = str_replace( array("\r\n", "\r", "\n", "\t", ' ', ' ', ' '), '', $minify ); $minify = str_replace("}","} ",$minify); - + return $minify; } @@ -1716,14 +1721,26 @@ class e_jsmanager break; case 'css': + $text = ''; if($label && E107_DEBUG_LEVEL > 0) { - echo "\n"; + $text .= "\n"; } - echo ''; - echo "\n"; + $text .= ''; + $text .= "\n"; + + if($this->_cache_enabled != true) + { + echo $text; + } + else + { + $this->_cache_list['css_inline'] = $text; + } + + break; } }