This commit is contained in:
Jeremy Benoist 2016-09-03 19:26:23 +02:00
parent 59ddb9ae99
commit 234ad94453
No known key found for this signature in database
GPG Key ID: BCA73962457ACC3C

View File

@ -36,7 +36,7 @@ class WallabagExtension extends \Twig_Extension implements \Twig_Extension_Globa
} }
/** /**
* Return number of entries depending of the type (unread, archive, starred or all) * Return number of entries depending of the type (unread, archive, starred or all).
* *
* @param string $type Type of entries to count * @param string $type Type of entries to count
* *
@ -78,7 +78,7 @@ class WallabagExtension extends \Twig_Extension implements \Twig_Extension_Globa
->groupBy('e.id') ->groupBy('e.id')
->getQuery(); ->getQuery();
$data =$this->repository $data = $this->repository
->enableCache($query) ->enableCache($query)
->getArrayResult(); ->getArrayResult();