aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/ApiBundle/Controller/WallabagRestController.php
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2016-10-05 19:30:56 +0200
committerJeremy Benoist <jeremy.benoist@gmail.com>2016-10-05 19:30:56 +0200
commit0b174d69d77770fab617661c284095bc61d30c10 (patch)
tree4454edd6d0987dd83bd6c49930e90d784d623bf2 /src/Wallabag/ApiBundle/Controller/WallabagRestController.php
parent5d39243068a3c1132f6e3020c6c9da1840f85fcf (diff)
downloadwallabag-0b174d69d77770fab617661c284095bc61d30c10.tar.gz
wallabag-0b174d69d77770fab617661c284095bc61d30c10.tar.zst
wallabag-0b174d69d77770fab617661c284095bc61d30c10.zip
Fix typo & add test
Diffstat (limited to 'src/Wallabag/ApiBundle/Controller/WallabagRestController.php')
-rw-r--r--src/Wallabag/ApiBundle/Controller/WallabagRestController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Wallabag/ApiBundle/Controller/WallabagRestController.php b/src/Wallabag/ApiBundle/Controller/WallabagRestController.php
index b2c73932..a0d9d4f3 100644
--- a/src/Wallabag/ApiBundle/Controller/WallabagRestController.php
+++ b/src/Wallabag/ApiBundle/Controller/WallabagRestController.php
@@ -40,7 +40,7 @@ class WallabagRestController extends FOSRestController
40 $url = $request->query->get('url', ''); 40 $url = $request->query->get('url', '');
41 41
42 if (empty($url)) { 42 if (empty($url)) {
43 throw $this->createAccessDeniedException('URL is empty?, logged user id: '.$this->getUser->getId()); 43 throw $this->createAccessDeniedException('URL is empty?, logged user id: '.$this->getUser()->getId());
44 } 44 }
45 45
46 $res = $this->getDoctrine() 46 $res = $this->getDoctrine()