Skip to content

Commit

Permalink
Merge pull request #25 from Aricura/master
Browse files Browse the repository at this point in the history
#24 - Fix template reference
  • Loading branch information
eymengunay authored May 1, 2019
2 parents e2e38c6 + af1a285 commit cb65af7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DependencyInjection/Compiler/FormCompilerPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ class FormCompilerPass implements CompilerPassInterface
public function process(ContainerBuilder $container)
{
$resources = $container->getParameter('twig.form.resources');
if (in_array('EoHoneypotBundle:Form:div_layout.html.twig', $resources) === false) {
array_unshift($resources, 'EoHoneypotBundle:Form:div_layout.html.twig');
if (in_array('@EoHoneypot/Form/div_layout.html.twig', $resources, true) === false) {
array_unshift($resources, '@EoHoneypot/Form/div_layout.html.twig');
$container->setParameter('twig.form.resources', $resources);
}
}
Expand Down

0 comments on commit cb65af7

Please sign in to comment.