diff options
Diffstat (limited to 'src/Wallabag/CoreBundle')
-rw-r--r-- | src/Wallabag/CoreBundle/Resources/views/base.html.twig | 5 | ||||
-rw-r--r-- | src/Wallabag/CoreBundle/Twig/WallabagPiwikExtension.php | 14 |
2 files changed, 4 insertions, 15 deletions
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 @@ | |||
71 | <div id="warning_message"> | 71 | <div id="warning_message"> |
72 | You're trying wallabag v2, which is in alpha version. If you find a bug, please have a look to <a href="https://github.com/wallabag/wallabag/issues">our issues list</a> and <a href="https://github.com/wallabag/wallabag/issues/new">open a new if necessary</a> | 72 | You're trying wallabag v2, which is in alpha version. If you find a bug, please have a look to <a href="https://github.com/wallabag/wallabag/issues">our issues list</a> and <a href="https://github.com/wallabag/wallabag/issues/new">open a new if necessary</a> |
73 | </div> | 73 | </div> |
74 | {{ piwik() }} | 74 | |
75 | {% if craue_setting('piwik_enabled') %} | ||
76 | {{ piwik(craue_setting('piwik_host'), craue_setting('piwik_site_id')) }} | ||
77 | {% endif %} | ||
75 | </body> | 78 | </body> |
76 | </html> | 79 | </html> |
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 @@ | |||
1 | <?php | ||
2 | |||
3 | namespace Wallabag\CoreBundle\Twig; | ||
4 | |||
5 | use Craue\ConfigBundle\Util\Config; | ||
6 | use PiwikTwigExtension\PiwikTwigExtension; | ||
7 | |||
8 | class WallabagPiwikExtension extends PiwikTwigExtension | ||
9 | { | ||
10 | public function __construct(Config $craueConfig) | ||
11 | { | ||
12 | parent::__construct($craueConfig->get('piwik_host'), $craueConfig->get('piwik_site_id'), $craueConfig->get('piwik_enabled')); | ||
13 | } | ||
14 | } | ||