mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-16 14:46:28 +02:00
[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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user