Skip to content

Commit

Permalink
Fix if condition for piwik
Browse files Browse the repository at this point in the history
  • Loading branch information
grigolet committed Mar 2, 2017
1 parent 86fe9b5 commit 3e44dc8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion HelperFunctions.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,10 @@ function setAnalytics($piwik = true, $wgPiwikURL, $wgPiwikIDSite, $wgGoogleAnaly
var d=document, g=d.createElement("script"), s=d.getElementsByTagName("script")[0]; g.type="text/javascript";
g.defer=true; g.async=true; g.src=u+"piwik.js"; s.parentNode.insertBefore(g,s);
})();
<?php } ?>
</script>
<noscript><img src="//<?php echo $wgPiwikURL; ?>/piwik.php?idsite=<?php echo $wgPiwikIDSite ?>&amp;rec=1" style="border:0" alt="" /></noscript>
<?php if ($piwik){ ?>
<noscript><img src="//<?php echo $wgPiwikURL; ?>/piwik.php?idsite=<?php echo $wgPiwikIDSite ?>&amp;rec=1" style="border:0" alt="" /></noscript>
<?php } ?>
<?php }
}

0 comments on commit 3e44dc8

Please sign in to comment.