]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - src/Wallabag/CoreBundle/Controller/TagController.php
Remove link when there are no untagged articles
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Controller / TagController.php
index 91f34b3de1871ccc5e6825bdf286c5d3fdb4e5b7..90d36d71ae28da3f43ea6795e28f556396626003 100644 (file)
@@ -87,7 +87,7 @@ class TagController extends Controller
     {
         $tags = $this->get('wallabag_core.tag_repository')
             ->findAllFlatTagsWithNbEntries($this->getUser()->getId());
-        $untagged = $this->get('wallabag_core.entry_repository')
+        $nbEntriesUntagged = $this->get('wallabag_core.entry_repository')
             ->countUntaggedEntriesByUser($this->getUser()->getId());
 
         $renameForms = [];
@@ -98,7 +98,7 @@ class TagController extends Controller
         return $this->render('WallabagCoreBundle:Tag:tags.html.twig', [
             'tags' => $tags,
             'renameForms' => $renameForms,
-            'untagged' => $untagged,
+            'nbEntriesUntagged' => $nbEntriesUntagged,
         ]);
     }