diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2020-04-26 14:09:16 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2020-04-26 14:09:16 +0200 |
commit | fd30989a186db2a68afa1bd24b3cf39b8ce94ef3 (patch) | |
tree | ed662cd28d46fa213da35928a35f7e0cac41d3d9 /src/Wallabag/CoreBundle/Controller/ExportController.php | |
parent | efea7a352f947a3632095d95a7dfbb07b8fd86c7 (diff) | |
download | wallabag-with-annotations-route.tar.gz wallabag-with-annotations-route.tar.zst wallabag-with-annotations-route.zip |
Enhanced tests and changed routewith-annotations-route
Diffstat (limited to 'src/Wallabag/CoreBundle/Controller/ExportController.php')
-rw-r--r-- | src/Wallabag/CoreBundle/Controller/ExportController.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Wallabag/CoreBundle/Controller/ExportController.php b/src/Wallabag/CoreBundle/Controller/ExportController.php index 8517e7a9..55b94f0a 100644 --- a/src/Wallabag/CoreBundle/Controller/ExportController.php +++ b/src/Wallabag/CoreBundle/Controller/ExportController.php | |||
@@ -47,7 +47,7 @@ class ExportController extends Controller | |||
47 | * | 47 | * |
48 | * @Route("/export/{category}.{format}", name="export_entries", requirements={ | 48 | * @Route("/export/{category}.{format}", name="export_entries", requirements={ |
49 | * "format": "epub|mobi|pdf|json|xml|txt|csv", | 49 | * "format": "epub|mobi|pdf|json|xml|txt|csv", |
50 | * "category": "all|unread|starred|archive|tag_entries|untagged|search|with_annotations" | 50 | * "category": "all|unread|starred|archive|tag_entries|untagged|search|annotated" |
51 | * }) | 51 | * }) |
52 | * | 52 | * |
53 | * @return \Symfony\Component\HttpFoundation\Response | 53 | * @return \Symfony\Component\HttpFoundation\Response |
@@ -80,7 +80,7 @@ class ExportController extends Controller | |||
80 | ->getResult(); | 80 | ->getResult(); |
81 | 81 | ||
82 | $title = 'Search ' . $searchTerm; | 82 | $title = 'Search ' . $searchTerm; |
83 | } elseif ('with_annotations' === $category) { | 83 | } elseif ('annotated' === $category) { |
84 | $entries = $repository->getBuilderForAnnotationsByUser( | 84 | $entries = $repository->getBuilderForAnnotationsByUser( |
85 | $this->getUser()->getId() | 85 | $this->getUser()->getId() |
86 | )->getQuery() | 86 | )->getQuery() |