1
0
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:
Oleg Pudeyev 2011-05-05 19:03:46 -04:00
parent b057d7439e
commit d8122df332

View File

@ -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)
{