aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/ImportBundle/Controller
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2016-01-13 22:53:36 +0100
committerJeremy Benoist <jeremy.benoist@gmail.com>2016-01-15 09:35:38 +0100
commit27e475a9412b0b462da2ddff641fddbeac5c165e (patch)
treea7d01eb002dcb6834f3e871e5529ed578022e8d5 /src/Wallabag/ImportBundle/Controller
parent6108b0f26ca33442279d643cf17b1f380432fa9f (diff)
downloadwallabag-27e475a9412b0b462da2ddff641fddbeac5c165e.tar.gz
wallabag-27e475a9412b0b462da2ddff641fddbeac5c165e.tar.zst
wallabag-27e475a9412b0b462da2ddff641fddbeac5c165e.zip
Fix Pocket generateUrl parameters
Diffstat (limited to 'src/Wallabag/ImportBundle/Controller')
-rw-r--r--src/Wallabag/ImportBundle/Controller/PocketController.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Wallabag/ImportBundle/Controller/PocketController.php b/src/Wallabag/ImportBundle/Controller/PocketController.php
index 72dc2696..7aee302f 100644
--- a/src/Wallabag/ImportBundle/Controller/PocketController.php
+++ b/src/Wallabag/ImportBundle/Controller/PocketController.php
@@ -24,12 +24,12 @@ class PocketController extends Controller
24 public function authAction() 24 public function authAction()
25 { 25 {
26 $requestToken = $this->get('wallabag_import.pocket.import') 26 $requestToken = $this->get('wallabag_import.pocket.import')
27 ->getRequestToken($this->generateUrl('import', UrlGeneratorInterface::ABSOLUTE_URL)); 27 ->getRequestToken($this->generateUrl('import', array(), UrlGeneratorInterface::ABSOLUTE_URL));
28 28
29 $this->get('session')->set('import.pocket.code', $requestToken); 29 $this->get('session')->set('import.pocket.code', $requestToken);
30 30
31 return $this->redirect( 31 return $this->redirect(
32 'https://getpocket.com/auth/authorize?request_token='.$requestToken.'&redirect_uri='.$this->generateUrl('import_pocket_callback', UrlGeneratorInterface::ABSOLUTE_URL), 32 'https://getpocket.com/auth/authorize?request_token='.$requestToken.'&redirect_uri='.$this->generateUrl('import_pocket_callback', array(), UrlGeneratorInterface::ABSOLUTE_URL),
33 301 33 301
34 ); 34 );
35 } 35 }