fiw method calling default front tempalte

This commit is contained in:
Manuel Raynaud
2013-11-06 15:50:37 +01:00
parent b1517945f4
commit 7c897c758d

View File

@@ -33,6 +33,7 @@ use Symfony\Component\Routing\Router;
use Thelia\Core\HttpKernel\Exception\NotFountHttpException; use Thelia\Core\HttpKernel\Exception\NotFountHttpException;
use Thelia\Core\Template\Exception\ResourceNotFoundException; use Thelia\Core\Template\Exception\ResourceNotFoundException;
use Thelia\Core\Template\ParserInterface; use Thelia\Core\Template\ParserInterface;
use Thelia\Core\Template\TemplateHelper;
use Thelia\Exception\OrderException; use Thelia\Exception\OrderException;
use Thelia\Model\ConfigQuery; use Thelia\Model\ConfigQuery;
use Thelia\Tools\Redirect; use Thelia\Tools\Redirect;
@@ -77,7 +78,7 @@ class ViewListener implements EventSubscriberInterface
{ {
$parser = $this->container->get('thelia.parser'); $parser = $this->container->get('thelia.parser');
$parser->setTemplate(ConfigQuery::getActiveTemplate()); $parser->setTemplate(TemplateHelper::getInstance()->getActiveFrontTemplate()->getPath());
$request = $this->container->get('request'); $request = $this->container->get('request');
try { try {