From 3899c2ecc4140de70c555215188bab73b4870e10 Mon Sep 17 00:00:00 2001 From: Michael Hamann <michael@content-space.de> Date: Tue, 18 Sep 2012 22:53:59 +0200 Subject: [PATCH] Start output buffering in lib/exe/css.php only when the CSS is generated This prevents buffering of the cache file output. --- lib/exe/css.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/exe/css.php b/lib/exe/css.php index fb639fc7e..8899ff193 100644 --- a/lib/exe/css.php +++ b/lib/exe/css.php @@ -66,9 +66,6 @@ function css_out(){ $config_cascade['userstyle']['screen'] = $config_cascade['userstyle']['default']; } - // start output buffering - ob_start(); - // Array of needed files and their web locations, the latter ones // are needed to fix relative paths in the stylesheets $files = array(); @@ -114,6 +111,9 @@ function css_out(){ http_cached($cache->cache, $cache->useCache(array('files' => $cache_files))); + // start output buffering + ob_start(); + // build the stylesheet foreach ($mediatypes as $mediatype) { -- GitLab