diff options
author | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-09-25 12:23:44 +0200 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-09-25 12:23:44 +0200 |
commit | 289875836a09944f5993d33753042abfef13809e (patch) | |
tree | 451f2c7ec7011f1f0ee8911fb1921b02f158e1dc /src/Wallabag/CoreBundle/Twig | |
parent | 82fc3290d4fec45ede270e2c1ad2079fe3020adc (diff) | |
download | wallabag-289875836a09944f5993d33753042abfef13809e.tar.gz wallabag-289875836a09944f5993d33753042abfef13809e.tar.zst wallabag-289875836a09944f5993d33753042abfef13809e.zip |
Fix tag count for PostgreSQL
Diffstat (limited to 'src/Wallabag/CoreBundle/Twig')
-rw-r--r-- | src/Wallabag/CoreBundle/Twig/WallabagExtension.php | 4 |
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() |