mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00: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:
parent
909ee59871
commit
c844a277b2
1 changed files with 5 additions and 1 deletions
|
@ -304,7 +304,11 @@ class phpbb_template
|
||||||
public function assign_display($handle, $template_var = '', $return_content = true, $include_once = false)
|
public function assign_display($handle, $template_var = '', $return_content = true, $include_once = false)
|
||||||
{
|
{
|
||||||
ob_start();
|
ob_start();
|
||||||
$this->display($handle, $include_once);
|
$result = $this->display($handle, $include_once);
|
||||||
|
if ($result === false)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
$contents = ob_get_clean();
|
$contents = ob_get_clean();
|
||||||
|
|
||||||
if ($return_content)
|
if ($return_content)
|
||||||
|
|
Loading…
Add table
Reference in a new issue