projects
/
web/konrad/twig.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
5b6d255
)
fixed possible warning
author
Fabien Potencier
<fabien.potencier@gmail.com>
Thu, 27 Jan 2011 22:12:35 +0000 (23:12 +0100)
committer
Fabien Potencier
<fabien.potencier@gmail.com>
Thu, 27 Jan 2011 22:12:35 +0000 (23:12 +0100)
lib/Twig/Template.php
patch
|
blob
|
history
diff --git
a/lib/Twig/Template.php
b/lib/Twig/Template.php
index
0e068fd
..
d4e1d74
100644
(file)
--- a/
lib/Twig/Template.php
+++ b/
lib/Twig/Template.php
@@
-169,7
+169,9
@@
abstract class Twig_Template implements Twig_TemplateInterface
try {
$this->display($context);
} catch (Exception $e) {
- ob_end_clean();
+ while (ob_get_level()) {
+ ob_end_clean();
+ }
throw $e;
}