From 077ddbe1aef64326f39e5e9a9f27517dd8d6ea44 Mon Sep 17 00:00:00 2001 From: Jeremy Benoist Date: Mon, 22 Feb 2016 10:58:43 +0100 Subject: Use a different way to use piwik --- src/Wallabag/CoreBundle/Resources/views/base.html.twig | 5 ++++- src/Wallabag/CoreBundle/Twig/WallabagPiwikExtension.php | 14 -------------- 2 files changed, 4 insertions(+), 15 deletions(-) delete mode 100644 src/Wallabag/CoreBundle/Twig/WallabagPiwikExtension.php (limited to 'src/Wallabag') diff --git a/src/Wallabag/CoreBundle/Resources/views/base.html.twig b/src/Wallabag/CoreBundle/Resources/views/base.html.twig index 8ca21728..3cadabfb 100644 --- a/src/Wallabag/CoreBundle/Resources/views/base.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/base.html.twig @@ -71,6 +71,9 @@
You're trying wallabag v2, which is in alpha version. If you find a bug, please have a look to our issues list and open a new if necessary
- {{ piwik() }} + + {% if craue_setting('piwik_enabled') %} + {{ piwik(craue_setting('piwik_host'), craue_setting('piwik_site_id')) }} + {% endif %} diff --git a/src/Wallabag/CoreBundle/Twig/WallabagPiwikExtension.php b/src/Wallabag/CoreBundle/Twig/WallabagPiwikExtension.php deleted file mode 100644 index 7725cd80..00000000 --- a/src/Wallabag/CoreBundle/Twig/WallabagPiwikExtension.php +++ /dev/null @@ -1,14 +0,0 @@ -get('piwik_host'), $craueConfig->get('piwik_site_id'), $craueConfig->get('piwik_enabled')); - } -} -- cgit v1.2.3