Commit 00666649 authored by Dries's avatar Dries

parent 89cad349
......@@ -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");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment