summaryrefslogtreecommitdiff
path: root/lib/exe
diff options
context:
space:
mode:
authorMichael Hamann <michael@content-space.de>2012-09-18 22:53:59 +0200
committerMichael Hamann <michael@content-space.de>2012-09-18 22:53:59 +0200
commit3899c2ecc4140de70c555215188bab73b4870e10 (patch)
treec35e466553edfef622bea14cc28b27f94d4fe0c6 /lib/exe
parentc5c68de9adc23077defdd39f9264286a62fb2e0e (diff)
downloadrpg-3899c2ecc4140de70c555215188bab73b4870e10.tar.gz
rpg-3899c2ecc4140de70c555215188bab73b4870e10.tar.bz2
Start output buffering in lib/exe/css.php only when the CSS is generated
This prevents buffering of the cache file output.
Diffstat (limited to 'lib/exe')
-rw-r--r--lib/exe/css.php6
1 files 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) {