summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-11-11 13:01:45 +0000
committerDries Buytaert <dries@buytaert.net>2003-11-11 13:01:45 +0000
commit00666649e84ef96378a030566fe3414681864f54 (patch)
tree7c4bcf3afe04467abb76a73855aa0ad19acd5146
parent89cad34923e7984754c629d801420fbcea7edf63 (diff)
downloadbrdo-00666649e84ef96378a030566fe3414681864f54.tar.gz
brdo-00666649e84ef96378a030566fe3414681864f54.tar.bz2
- Removed the output buffering from the Xtemplate theme.
-rw-r--r--themes/xtemplate/xtemplate.theme10
1 files changed, 3 insertions, 7 deletions
diff --git a/themes/xtemplate/xtemplate.theme b/themes/xtemplate/xtemplate.theme
index a24149fef..75076004d 100644
--- a/themes/xtemplate/xtemplate.theme
+++ b/themes/xtemplate/xtemplate.theme
@@ -115,22 +115,18 @@ function xtemplate_header($title = "") {
$xtemplate->template->parse("header.message");
}
- ob_start();
-
if ($xtemplate->sidebar == "left") {
- print render_blocks("all");
+ $blocks = render_blocks("all");
}
else if ($xtemplate->sidebar == "both") {
- print render_blocks("left");
+ $blocks = render_blocks("left");
}
- if ($blocks = ob_get_contents()) {
+ if ($blocks) {
$xtemplate->template->assign("blocks", $blocks);
$xtemplate->template->parse("header.blocks");
}
- ob_end_clean();
-
$xtemplate->template->parse("header");
print $xtemplate->template->text("header");
}