]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Merge pull request #1644 from wallabag/v2-enable-confirmation-parameter
authorJeremy Benoist <j0k3r@users.noreply.github.com>
Thu, 4 Feb 2016 16:45:50 +0000 (17:45 +0100)
committerJeremy Benoist <j0k3r@users.noreply.github.com>
Thu, 4 Feb 2016 16:45:50 +0000 (17:45 +0100)
Fix #1622: parameter for FosUser confirmation

src/Wallabag/UserBundle/Mailer/AuthCodeMailer.php
src/Wallabag/UserBundle/Tests/Mailer/AuthCodeMailerTest.php

index d078bdf761f5577a2b375dbc258209ce901e98bc..d8403491f6d1b0a81d5d1a623b4208a080b794ed 100644 (file)
@@ -80,7 +80,7 @@ class AuthCodeMailer implements AuthCodeMailerInterface
      */
     public function sendAuthCode(TwoFactorInterface $user)
     {
-        $template = $this->twig->loadTemplate('@WallabagUserBundle/Resources/views/TwoFactor/email_auth_code.html.twig');
+        $template = $this->twig->loadTemplate('WallabagUserBundle:TwoFactor:email_auth_code.html.twig');
 
         $subject = $template->renderBlock('subject', array());
         $bodyHtml = $template->renderBlock('body_html', [
index 562a1ed2b7e7253a4ee89b0dbb5f37b0c49a9839..b95e195e6cafb4853996aab84ea9f7af347d9129 100644 (file)
@@ -43,7 +43,7 @@ class AuthCodeMailerTest extends \PHPUnit_Framework_TestCase
 {% block body_text %}text body {{ support_url }}{% endblock %}
 TWIG;
 
-        $this->twig = new \Twig_Environment(new \Twig_Loader_Array(array('@WallabagUserBundle/Resources/views/TwoFactor/email_auth_code.html.twig' => $twigTemplate)));
+        $this->twig = new \Twig_Environment(new \Twig_Loader_Array(array('WallabagUserBundle:TwoFactor:email_auth_code.html.twig' => $twigTemplate)));
 
         $this->config = $this->getMockBuilder('Craue\ConfigBundle\Util\Config')
             ->disableOriginalConstructor()