aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Twig/WallabagExtension.php
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2016-09-25 12:23:44 +0200
committerJeremy Benoist <jeremy.benoist@gmail.com>2016-09-25 12:23:44 +0200
commit289875836a09944f5993d33753042abfef13809e (patch)
tree451f2c7ec7011f1f0ee8911fb1921b02f158e1dc /src/Wallabag/CoreBundle/Twig/WallabagExtension.php
parent82fc3290d4fec45ede270e2c1ad2079fe3020adc (diff)
downloadwallabag-289875836a09944f5993d33753042abfef13809e.tar.gz
wallabag-289875836a09944f5993d33753042abfef13809e.tar.zst
wallabag-289875836a09944f5993d33753042abfef13809e.zip
Fix tag count for PostgreSQL
Diffstat (limited to 'src/Wallabag/CoreBundle/Twig/WallabagExtension.php')
-rw-r--r--src/Wallabag/CoreBundle/Twig/WallabagExtension.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/Wallabag/CoreBundle/Twig/WallabagExtension.php b/src/Wallabag/CoreBundle/Twig/WallabagExtension.php
index 45dc591d..fb4c7412 100644
--- a/src/Wallabag/CoreBundle/Twig/WallabagExtension.php
+++ b/src/Wallabag/CoreBundle/Twig/WallabagExtension.php
@@ -104,9 +104,7 @@ class WallabagExtension extends \Twig_Extension implements \Twig_Extension_Globa
104 return 0; 104 return 0;
105 } 105 }
106 106
107 $data = $this->tagRepository->findAllTags($user->getId()); 107 return $this->tagRepository->countAllTags($user->getId());
108
109 return count($data);
110 } 108 }
111 109
112 public function getName() 110 public function getName()