Skip to content

Commit

Permalink
Merge pull request #75 from jdeniau/master
Browse files Browse the repository at this point in the history
Fixes #74
  • Loading branch information
raulfraile committed Dec 23, 2015
2 parents c0d6d66 + 9e9beaa commit 40a15f3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/Ladybug/Renderer/Twig/Extension/BaseExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ public function getName()
public function getFunctions()
{
return array(
'render_type' => new \Twig_SimpleFunction(
'renderTypeFunction',
new \Twig_SimpleFunction(
'render_type',
array($this, 'renderTypeFunction'),
array('needs_environment' => true, 'is_safe' => array('html'))
)
Expand All @@ -56,8 +56,8 @@ public function getFunctions()
public function getFilters()
{
return array(
'repeat' => new \Twig_SimpleFilter('getRepeat', array($this, 'getRepeat'), array('is_safe' => array('html'))),
'pad' => new \Twig_SimpleFilter('getPad', array($this, 'getPad')),
new \Twig_SimpleFilter('repeat', array($this, 'getRepeat'), array('is_safe' => array('html'))),
new \Twig_SimpleFilter('pad', array($this, 'getPad')),
);
}

Expand Down
3 changes: 1 addition & 2 deletions src/Ladybug/Renderer/Twig/Extension/ConsoleExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function getName()
public function getFilters()
{
return array_merge(parent::getFilters(), array(
'tags' => new \Twig_SimpleFilter('getTags', array($this, 'getTags'), array('is_safe' => array('html'))),
new \Twig_SimpleFilter('tags', array($this, 'getTags'), array('is_safe' => array('html'))),
));
}

Expand All @@ -44,5 +44,4 @@ public function getTags($text)

return $textTags;
}

}

0 comments on commit 40a15f3

Please sign in to comment.