X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=plugins%2Fpiwik%2Fpiwik.php;fp=plugins%2Fpiwik%2Fpiwik.php;h=4a2b48a121fcd4249fe2c257beb35fb28150d16e;hb=fe83d45c465bad94709ce5aacf7acad47ad75077;hp=7c44909c6e47cf1223e3f26dfcbd6dd89a5bfc4d;hpb=844021ab4c0d3dd6c26704648a736fa53244c914;p=github%2Fshaarli%2FShaarli.git 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; } -