Re: FBR: Remove piwik from websites

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jun 08, 2017 at 11:09:29AM -0400, Stephen John Smoogen wrote:
> I would like to remove Piwik from the wiki and other websites which
> use it. Currently the main change would be in the files:
> 
> 
> roles/mediawiki/files/skins/Fedora.php
> roles/mediawiki123/files/skins/Fedora.php
> 
> diff --git a/roles/mediawiki123/files/skins/Fedora.php
> b/roles/mediawiki123/files/skins/Fedora.php
> index fda1a78..1956819 100644
> --- a/roles/mediawiki123/files/skins/Fedora.php
> +++ b/roles/mediawiki123/files/skins/Fedora.php
> @@ -91,22 +91,6 @@ class FedoraTemplate extends QuickTemplate {
>                 if($this->data['trackbackhtml']) print
> $this->data['trackbackhtml']; ?>
>                 <!-- Head Scripts -->
>  <?php $this->html('headscripts') ?>
> -                <!-- Piwik -->
> -                <script type="text/javascript">
> -                  var _paq = _paq || [];
> -                  _paq.push(["setDomains", ["*.fedoraproject.org"]]);
> -                  _paq.push(['trackPageView']);
> -                  _paq.push(['enableLinkTracking']);
> -                  (function() {
> -                    var u="//piwik.fedorainfracloud.org/piwik/";
> -                    _paq.push(['setTrackerUrl', u+'piwik.php']);
> -                    _paq.push(['setSiteId', 12]);
> -                    var d=document, g=d.createElement('script'),
> s=d.getElementsByTagName('script')[0];
> -                    g.type='text/javascript'; g.async=true;
> g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
> -                  })();
> -                </script>
> -                <noscript><p><img
> src="//piwik.fedorainfracloud.org/piwik/piwik.php?idsite=12"
> style="border:0;" alt="" /></p></noscript>
> -                <!-- End Piwik Code -->
>         </head>
>  <body <?php if($this->data['body_ondblclick']) { ?>ondblclick="<?php
> $this->text('body_ondblclick') ?>"<?php } ?>
>  <?php if($this->data['body_onload'    ]) { ?>onload="<?php
> $this->text('body_onload')     ?>"<?php } ?>
> 
> This will then necessitate a rerun of the associated playbook


+1 for me


Pierre

Attachment: signature.asc
Description: PGP signature

_______________________________________________
infrastructure mailing list -- infrastructure@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to infrastructure-leave@xxxxxxxxxxxxxxxxxxxxxxx

[Index of Archives]     [Fedora Development]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux