mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[feature/template-engine] Always call ob_end_clean.
We have to stop output buffering even when rendering fails. PHPBB3-9726
This commit is contained in:
parent
b057d7439e
commit
d8122df332
1 changed files with 1 additions and 1 deletions
|
@ -289,11 +289,11 @@ class phpbb_template
|
|||
{
|
||||
ob_start();
|
||||
$result = $this->display($handle, $include_once);
|
||||
$contents = ob_get_clean();
|
||||
if ($result === false)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
$contents = ob_get_clean();
|
||||
|
||||
if ($return_content)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue