diff options
author | Jeremy Benoist <jeremy.benoist@gmail.com> | 2019-06-06 13:34:20 +0200 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2019-06-06 13:34:20 +0200 |
commit | 35c7819cb63a9c481a2b612755d881d24d6586d0 (patch) | |
tree | 8edc207df2b1fd17a19d96e07c02a864733039d5 /src/Wallabag/CoreBundle/Controller | |
parent | 0f2d24feb4709bf0ea97e6152e8a607aaa3c1c72 (diff) | |
download | wallabag-35c7819cb63a9c481a2b612755d881d24d6586d0.tar.gz wallabag-35c7819cb63a9c481a2b612755d881d24d6586d0.tar.zst wallabag-35c7819cb63a9c481a2b612755d881d24d6586d0.zip |
Remove link when there are no untagged articles
Diffstat (limited to 'src/Wallabag/CoreBundle/Controller')
-rw-r--r-- | src/Wallabag/CoreBundle/Controller/TagController.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Wallabag/CoreBundle/Controller/TagController.php b/src/Wallabag/CoreBundle/Controller/TagController.php index 91f34b3d..90d36d71 100644 --- a/src/Wallabag/CoreBundle/Controller/TagController.php +++ b/src/Wallabag/CoreBundle/Controller/TagController.php | |||
@@ -87,7 +87,7 @@ class TagController extends Controller | |||
87 | { | 87 | { |
88 | $tags = $this->get('wallabag_core.tag_repository') | 88 | $tags = $this->get('wallabag_core.tag_repository') |
89 | ->findAllFlatTagsWithNbEntries($this->getUser()->getId()); | 89 | ->findAllFlatTagsWithNbEntries($this->getUser()->getId()); |
90 | $untagged = $this->get('wallabag_core.entry_repository') | 90 | $nbEntriesUntagged = $this->get('wallabag_core.entry_repository') |
91 | ->countUntaggedEntriesByUser($this->getUser()->getId()); | 91 | ->countUntaggedEntriesByUser($this->getUser()->getId()); |
92 | 92 | ||
93 | $renameForms = []; | 93 | $renameForms = []; |
@@ -98,7 +98,7 @@ class TagController extends Controller | |||
98 | return $this->render('WallabagCoreBundle:Tag:tags.html.twig', [ | 98 | return $this->render('WallabagCoreBundle:Tag:tags.html.twig', [ |
99 | 'tags' => $tags, | 99 | 'tags' => $tags, |
100 | 'renameForms' => $renameForms, | 100 | 'renameForms' => $renameForms, |
101 | 'untagged' => $untagged, | 101 | 'nbEntriesUntagged' => $nbEntriesUntagged, |
102 | ]); | 102 | ]); |
103 | } | 103 | } |
104 | 104 | ||