The SSH host key has changed on 8 April, 2022 to this one: SHA256:573uTBSeh74kvOo0HJXi5ijdzRm8me27suzNEDlGyrQ

Fixed scope error in TwigBBExtension

Signed-off-by: Gergely POLONKAI <polesz@w00d5t0ck.info>
master
Gergely POLONKAI 10 years ago
parent 08e987c4bb
commit 44539862a2
  1. 7
      src/KekRozsak/FrontBundle/Twig/TwigBBExtension.php

@ -11,7 +11,7 @@ use JMS\DiExtraBundle\Annotation as DI;
*/
class TwigBBExtension extends \Twig_Extension
{
private $assets;
private $container;
/**
* @DI\InjectParams({
@ -21,7 +21,7 @@ class TwigBBExtension extends \Twig_Extension
*/
public function __construct(ContainerInterface $container)
{
$this->assets = $container->get('templating.helper.assets');
$this->container = $container;
}
public function getFilters()
@ -78,7 +78,8 @@ class TwigBBExtension extends \Twig_Extension
$sentence,
'<img src="'
. $this
->assets
->container
->get('templating.helper.assets')
->getUrl(
'upload/images/'
. (($ns == '') ? '' : $ns . '/')

Loading…
Cancel
Save