Simplify output buffering code

No need to use both ob_get_contents() and ob_end_clean() when you can just use ob_get_clean().
pull/87/head
Micah Wood 11 years ago
parent fdb88e842a
commit 3a4c0c72bf

@ -122,9 +122,7 @@ class View {
ob_start(); ob_start();
$this->render($file, $data); $this->render($file, $data);
$output = ob_get_contents(); $output = ob_get_clean();
ob_end_clean();
return $output; return $output;
} }

Loading…
Cancel
Save