[feature/template-engine] Check return value of display() in assign_display().

If display() failed, propagate the failure out of assign_display().

PHPBB3-9726
This commit is contained in:
Oleg Pudeyev 2011-05-01 03:09:49 -04:00
parent 909ee59871
commit c844a277b2

View file

@ -304,7 +304,11 @@ class phpbb_template
public function assign_display($handle, $template_var = '', $return_content = true, $include_once = false)
{
ob_start();
$this->display($handle, $include_once);
$result = $this->display($handle, $include_once);
if ($result === false)
{
return false;
}
$contents = ob_get_clean();
if ($return_content)