1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-19 15:01:33 +02:00

Merge branch '3.1.x'

This commit is contained in:
Joas Schilling
2015-05-16 13:40:07 +02:00
9 changed files with 167 additions and 10 deletions

View File

@@ -31,7 +31,8 @@ class definenode extends \Twig_Node
{
$compiler->addDebugInfo($this);
if ($this->getAttribute('capture')) {
if ($this->getAttribute('capture'))
{
$compiler
->write("ob_start();\n")
->subcompile($this->getNode('value'))

View File

@@ -47,7 +47,8 @@ class includephp extends \Twig_Node
return;
}
if ($this->getAttribute('ignore_missing')) {
if ($this->getAttribute('ignore_missing'))
{
$compiler
->write("try {\n")
->indent()
@@ -76,7 +77,8 @@ class includephp extends \Twig_Node
->write("}\n")
;
if ($this->getAttribute('ignore_missing')) {
if ($this->getAttribute('ignore_missing'))
{
$compiler
->outdent()
->write("} catch (\Twig_Error_Loader \$e) {\n")