aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/ImportBundle/Controller
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2016-03-28 09:41:49 +0200
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2016-03-28 09:41:49 +0200
commitcc8c2d315f6868201ff32cc4895844c800624a87 (patch)
tree9a59669aba09a08751aecc0dcf8ccd1e20aef6c6 /src/Wallabag/ImportBundle/Controller
parenta2d6f6e9d806c727b20a08f37ef7ede1e0dad3cf (diff)
parent8f336fda649c064cabfa692793334067ece780f9 (diff)
downloadwallabag-cc8c2d315f6868201ff32cc4895844c800624a87.tar.gz
wallabag-cc8c2d315f6868201ff32cc4895844c800624a87.tar.zst
wallabag-cc8c2d315f6868201ff32cc4895844c800624a87.zip
Merge pull request #1819 from wallabag/cleanup
Some cleanup
Diffstat (limited to 'src/Wallabag/ImportBundle/Controller')
-rw-r--r--src/Wallabag/ImportBundle/Controller/PocketController.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Wallabag/ImportBundle/Controller/PocketController.php b/src/Wallabag/ImportBundle/Controller/PocketController.php
index 1d804219..11ce649d 100644
--- a/src/Wallabag/ImportBundle/Controller/PocketController.php
+++ b/src/Wallabag/ImportBundle/Controller/PocketController.php
@@ -38,6 +38,15 @@ class PocketController extends Controller
38 $requestToken = $this->get('wallabag_import.pocket.import') 38 $requestToken = $this->get('wallabag_import.pocket.import')
39 ->getRequestToken($this->generateUrl('import', array(), UrlGeneratorInterface::ABSOLUTE_URL)); 39 ->getRequestToken($this->generateUrl('import', array(), UrlGeneratorInterface::ABSOLUTE_URL));
40 40
41 if (false === $requestToken) {
42 $this->get('session')->getFlashBag()->add(
43 'notice',
44 'flashes.import.notice.failed'
45 );
46
47 return $this->redirect($this->generateUrl('import_pocket'));
48 }
49
41 $this->get('session')->set('import.pocket.code', $requestToken); 50 $this->get('session')->set('import.pocket.code', $requestToken);
42 $this->get('session')->set('mark_as_read', $request->request->get('form')['mark_as_read']); 51 $this->get('session')->set('mark_as_read', $request->request->get('form')['mark_as_read']);
43 52