mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-25 20:44:01 +01: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
@ -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…
x
Reference in New Issue
Block a user