Skip to content
Permalink
Browse files

Empty the buffered content stack when rendering error pages.

When rendering an error page any buffered content should be discarded.
This fixes funny layout issues when cell errors are thrown, or when
missing element errors occur.
  • Loading branch information...
markstory committed Jul 23, 2014
1 parent df8294d commit ee771572c9178a150cd18f2126e5e81aaf5d5764
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/Error/ExceptionRenderer.php
@@ -153,6 +153,10 @@ public function render() {
$this->controller->set($this->error->getAttributes());
}
while (ob_get_level() > 0) {
ob_end_clean();
}
$this->_outputMessage($template);
}

0 comments on commit ee77157

Please sign in to comment.
You can’t perform that action at this time.