Skip to content

Commit

Permalink
move script to footer
Browse files Browse the repository at this point in the history
  • Loading branch information
kalamun committed Dec 14, 2021
1 parent 8bb5a4f commit e90707b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Piwik/README
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Version 1.1.00
Version 1.1.02
Plugin compatible with ILIAS 5.x to 6.13.x

DESCRIPTION
Expand Down
4 changes: 2 additions & 2 deletions Piwik/classes/class.ilPiwikUIHookGUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function getHTML($a_comp, $a_part, $a_par = array())
{

// is main template?
if (strpos(strtolower($a_par['html']), "</head>") !== false)
if (strpos(strtolower($a_par['html']), "</body>") !== false)
{
// get the plugin configuration
$piwik_site_id = $this->plugin_object->getPiwikSiteId();
Expand All @@ -47,7 +47,7 @@ function getHTML($a_comp, $a_part, $a_par = array())
if ($piwik_site_id != null && $piwik_host != null)
{
$html = $a_par['html'];
$index = strripos($html, "</head>", -7);
$index = strripos($html, "</body>", -7);
if ($index !== false)
{
$tmpl = $this->plugin_object->getTemplate("tpl.piwik_tracking.html", true, true);
Expand Down
2 changes: 1 addition & 1 deletion Piwik/plugin.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
$id = "matomo";
$version = "1.1.00";
$version = "1.1.02";
$ilias_min_version = "6.0.0";
$ilias_max_version = "6.13.999";
$responsible = "Roberto Pasini";
Expand Down
2 changes: 1 addition & 1 deletion README
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Version 1.1.00
Version 1.1.02
Plugin compatible with ILIAS 5.x to 6.13.x

DESCRIPTION
Expand Down

0 comments on commit e90707b

Please sign in to comment.