aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorJérémy Benoist <j0k3r@users.noreply.github.com>2017-05-10 09:32:27 +0200
committerGitHub <noreply@github.com>2017-05-10 09:32:27 +0200
commite538c85ba7f028ff59ceb96f3b4779b1ef41bc14 (patch)
tree81ec098732bacc05ebb92e14b34d9a49e49da6cd /src
parent58f5a39ce620a04a27bc86c4b3fc68c03cb9e454 (diff)
parent1594a79fc5eefe217ed463144857d0693b6714fa (diff)
downloadwallabag-e538c85ba7f028ff59ceb96f3b4779b1ef41bc14.tar.gz
wallabag-e538c85ba7f028ff59ceb96f3b4779b1ef41bc14.tar.zst
wallabag-e538c85ba7f028ff59ceb96f3b4779b1ef41bc14.zip
Merge pull request #3103 from wallabag/api-delete-tag-query
Retrieve tag / tags value from query or request
Diffstat (limited to 'src')
-rw-r--r--src/Wallabag/ApiBundle/Controller/TagRestController.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Wallabag/ApiBundle/Controller/TagRestController.php b/src/Wallabag/ApiBundle/Controller/TagRestController.php
index 47298d7e..354187a0 100644
--- a/src/Wallabag/ApiBundle/Controller/TagRestController.php
+++ b/src/Wallabag/ApiBundle/Controller/TagRestController.php
@@ -44,7 +44,7 @@ class TagRestController extends WallabagRestController
44 public function deleteTagLabelAction(Request $request) 44 public function deleteTagLabelAction(Request $request)
45 { 45 {
46 $this->validateAuthentication(); 46 $this->validateAuthentication();
47 $label = $request->request->get('tag', ''); 47 $label = $request->get('tag', '');
48 48
49 $tag = $this->getDoctrine()->getRepository('WallabagCoreBundle:Tag')->findOneByLabel($label); 49 $tag = $this->getDoctrine()->getRepository('WallabagCoreBundle:Tag')->findOneByLabel($label);
50 50
@@ -78,7 +78,7 @@ class TagRestController extends WallabagRestController
78 { 78 {
79 $this->validateAuthentication(); 79 $this->validateAuthentication();
80 80
81 $tagsLabels = $request->request->get('tags', ''); 81 $tagsLabels = $request->get('tags', '');
82 82
83 $tags = []; 83 $tags = [];
84 84