]> git.immae.eu Git - github/wallabag/wallabag.git/commit
Remove Twig globals
authorJeremy Benoist <jeremy.benoist@gmail.com>
Sat, 3 Sep 2016 17:09:28 +0000 (19:09 +0200)
committerJeremy Benoist <jeremy.benoist@gmail.com>
Sat, 3 Sep 2016 17:09:28 +0000 (19:09 +0200)
commit59ddb9ae99b97a1a8fa3aa3770a4a2afef333699
tree284253835f947c2e7ffefc9b8c09d95bd324f154
parent543da3e0b7592b1a00a7c5baec1554460609d63f
Remove Twig globals

Twig Global function are called globally. This means even on a query to the api.

Using a function we can decide when we want to call it.

Also, remove previous `COUNT(e.id)` since it doesn't work on PostgreSQL ...
src/Wallabag/CoreBundle/Resources/views/themes/material/layout.html.twig
src/Wallabag/CoreBundle/Twig/WallabagExtension.php