Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Chaining the template.filter_parameters class, no need to set a varia…

…ble, just return the values.
  • Loading branch information...
commit d6c89bbc9bd4372427edd97156f7162cbcc47e08 1 parent a7e29a6
@henrikbjorn authored
Showing with 2 additions and 4 deletions.
  1. +2 −4 lib/view/sfTwigView.class.php
View
6 lib/view/sfTwigView.class.php
@@ -84,10 +84,8 @@ public function getEngine()
*/
protected function getAttributeHolderVariables()
{
- $event = $this->dispatcher->filter(new sfEvent($this, 'template.filter_parameters'), $this->attributeHolder->getAll());
- $parameters = $event->getReturnValue();
-
- return $parameters;
+ return $this->dispatcher->filter(new sfEvent($this, 'template.filter_parameters'), $this->attributeHolder->getAll())
+ ->getReturnValue();
}
/**
Please sign in to comment.
Something went wrong with that request. Please try again.