]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Fix Pocket generateUrl parameters
authorJeremy Benoist <jeremy.benoist@gmail.com>
Wed, 13 Jan 2016 21:53:36 +0000 (22:53 +0100)
committerJeremy Benoist <jeremy.benoist@gmail.com>
Fri, 15 Jan 2016 08:35:38 +0000 (09:35 +0100)
src/Wallabag/ImportBundle/Controller/PocketController.php

index 72dc2696a1967eaa2b61244224e77ad814121a8a..7aee302f53f2e00fd341147467376b6e215bf775 100644 (file)
@@ -24,12 +24,12 @@ class PocketController extends Controller
     public function authAction()
     {
         $requestToken = $this->get('wallabag_import.pocket.import')
-            ->getRequestToken($this->generateUrl('import', UrlGeneratorInterface::ABSOLUTE_URL));
+            ->getRequestToken($this->generateUrl('import', array(), UrlGeneratorInterface::ABSOLUTE_URL));
 
         $this->get('session')->set('import.pocket.code', $requestToken);
 
         return $this->redirect(
-            'https://getpocket.com/auth/authorize?request_token='.$requestToken.'&redirect_uri='.$this->generateUrl('import_pocket_callback', UrlGeneratorInterface::ABSOLUTE_URL),
+            'https://getpocket.com/auth/authorize?request_token='.$requestToken.'&redirect_uri='.$this->generateUrl('import_pocket_callback', array(), UrlGeneratorInterface::ABSOLUTE_URL),
             301
         );
     }