ob_start * bug fix.

This commit is contained in:
Changwan Jun 2015-05-26 14:57:42 +09:00
parent c6b4dc866c
commit e2928534c5
2 changed files with 14 additions and 3 deletions

View file

@ -362,6 +362,7 @@ class TemplateHandler
$__Context->logged_info = Context::get('logged_info');
}
$level = ob_get_level();
ob_start();
if(substr($buff, 0, 7) == 'file://')
{
@ -395,7 +396,12 @@ class TemplateHandler
}
}
return ob_get_clean();
$contents = '';
while (ob_get_level() - $level > 0) {
$contents .= ob_get_contents();
ob_end_clean();
}
return $contents;
}
/**