Skip to content

Commit

Permalink
Fix EZP-22827: Having formtoken active, it's not possible to edit eZ …
Browse files Browse the repository at this point in the history
…Demo frontpage
  • Loading branch information
lolautruche committed May 14, 2014
1 parent 8c772e6 commit 70fe212
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion eZ/Publish/Core/MVC/Legacy/Templating/LegacyEngine.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
use Symfony\Component\Templating\EngineInterface;
use eZ\Publish\Core\MVC\Legacy\Templating\Converter\MultipleObjectConverter;
use eZTemplate;
use ezpEvent;

class LegacyEngine implements EngineInterface
{
Expand Down Expand Up @@ -100,7 +101,7 @@ function () use ( $name, $legacyVars )
$tpl->setVariable( $varName, $value );
}

return $tpl->fetch( $name );
return ezpEvent::getInstance()->filter( 'response/output', $tpl->fetch( $name ) );
},
false
);
Expand Down

0 comments on commit 70fe212

Please sign in to comment.