From fe83d45c465bad94709ce5aacf7acad47ad75077 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Thu, 9 Mar 2017 20:51:28 +0100 Subject: Fix #773: set Piwik URL protocol --- plugins/piwik/piwik.php | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) (limited to 'plugins/piwik/piwik.php') diff --git a/plugins/piwik/piwik.php b/plugins/piwik/piwik.php index 7c44909c..4a2b48a1 100644 --- a/plugins/piwik/piwik.php +++ b/plugins/piwik/piwik.php @@ -50,22 +50,13 @@ function hook_piwik_render_footer($data, $conf) } // Free elements at the end of the page. - $data['endofpage'][] = '' . -'' . -'' . -''; + $data['endofpage'][] = sprintf( + file_get_contents(PluginManager::$PLUGINS_PATH . '/piwik/piwik.html'), + $piwikUrl, + $piwikSiteid, + $piwikUrl, + $piwikSiteid + ); return $data; } - -- cgit v1.2.3