diff options
Diffstat (limited to 'src/Wallabag/CoreBundle/Controller')
-rw-r--r-- | src/Wallabag/CoreBundle/Controller/StaticController.php | 1 | ||||
-rw-r--r-- | src/Wallabag/CoreBundle/Controller/WallabagRestController.php | 8 |
2 files changed, 4 insertions, 5 deletions
diff --git a/src/Wallabag/CoreBundle/Controller/StaticController.php b/src/Wallabag/CoreBundle/Controller/StaticController.php index 513a6c11..07931f58 100644 --- a/src/Wallabag/CoreBundle/Controller/StaticController.php +++ b/src/Wallabag/CoreBundle/Controller/StaticController.php | |||
@@ -18,7 +18,6 @@ class StaticController extends Controller | |||
18 | ); | 18 | ); |
19 | } | 19 | } |
20 | 20 | ||
21 | |||
22 | /** | 21 | /** |
23 | * @Route("/", name="homepage") | 22 | * @Route("/", name="homepage") |
24 | */ | 23 | */ |
diff --git a/src/Wallabag/CoreBundle/Controller/WallabagRestController.php b/src/Wallabag/CoreBundle/Controller/WallabagRestController.php index fc13b1a8..5f56e0fc 100644 --- a/src/Wallabag/CoreBundle/Controller/WallabagRestController.php +++ b/src/Wallabag/CoreBundle/Controller/WallabagRestController.php | |||
@@ -33,9 +33,9 @@ class WallabagRestController extends Controller | |||
33 | { | 33 | { |
34 | // TODO isArchived, isStarred et isDeleted ne doivent pas avoir de valeur par défaut | 34 | // TODO isArchived, isStarred et isDeleted ne doivent pas avoir de valeur par défaut |
35 | // TODO Si on ne passe rien, on ne filtre pas sur le statut. | 35 | // TODO Si on ne passe rien, on ne filtre pas sur le statut. |
36 | $isArchived = $request->query->get('archive', 0); | 36 | $isArchived = $request->query->get('archive'); |
37 | $isStarred = $request->query->get('star', 0); | 37 | $isStarred = $request->query->get('star'); |
38 | $isDeleted = $request->query->get('delete', 0); | 38 | $isDeleted = $request->query->get('delete'); |
39 | $sort = $request->query->get('sort', 'created'); | 39 | $sort = $request->query->get('sort', 'created'); |
40 | $order = $request->query->get('order', 'desc'); | 40 | $order = $request->query->get('order', 'desc'); |
41 | $page = $request->query->get('page', 1); | 41 | $page = $request->query->get('page', 1); |
@@ -45,7 +45,7 @@ class WallabagRestController extends Controller | |||
45 | $entries = $this | 45 | $entries = $this |
46 | ->getDoctrine() | 46 | ->getDoctrine() |
47 | ->getRepository('WallabagCoreBundle:Entries') | 47 | ->getRepository('WallabagCoreBundle:Entries') |
48 | ->findEntries(1, (int) $isArchived, (int) $isStarred, (int) $isDeleted, $sort, $order); | 48 | ->findEntries(1, $isArchived, $isStarred, $isDeleted, $sort, $order); |
49 | 49 | ||
50 | if (!is_array($entries)) { | 50 | if (!is_array($entries)) { |
51 | throw $this->createNotFoundException(); | 51 | throw $this->createNotFoundException(); |