Skip to content
Snippets Groups Projects
Commit 3899c2ec authored by Michael Hamann's avatar Michael Hamann
Browse files

Start output buffering in lib/exe/css.php only when the CSS is generated

This prevents buffering of the cache file output.
parent c5c68de9
No related branches found
No related tags found
No related merge requests found
...@@ -66,9 +66,6 @@ function css_out(){ ...@@ -66,9 +66,6 @@ function css_out(){
$config_cascade['userstyle']['screen'] = $config_cascade['userstyle']['default']; $config_cascade['userstyle']['screen'] = $config_cascade['userstyle']['default'];
} }
// start output buffering
ob_start();
// Array of needed files and their web locations, the latter ones // Array of needed files and their web locations, the latter ones
// are needed to fix relative paths in the stylesheets // are needed to fix relative paths in the stylesheets
$files = array(); $files = array();
...@@ -114,6 +111,9 @@ function css_out(){ ...@@ -114,6 +111,9 @@ function css_out(){
http_cached($cache->cache, http_cached($cache->cache,
$cache->useCache(array('files' => $cache_files))); $cache->useCache(array('files' => $cache_files)));
// start output buffering
ob_start();
// build the stylesheet // build the stylesheet
foreach ($mediatypes as $mediatype) { foreach ($mediatypes as $mediatype) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment