[planet-web] Load the javascript on https



commit d4e94fc2da8ada941f91964c8a4b6e8c5b4bad6e
Author: Andrea Veri <av gnome org>
Date:   Tue Dec 10 00:29:18 2013 +0100

    Load the javascript on https

 themes/gnome/index.html.tmpl |    2 +-
 themes/news/index.html.tmpl  |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/themes/gnome/index.html.tmpl b/themes/gnome/index.html.tmpl
index d63b981..57ed33a 100644
--- a/themes/gnome/index.html.tmpl
+++ b/themes/gnome/index.html.tmpl
@@ -314,7 +314,7 @@ Hosted by <a href="http://www.redhat.com/";>Red Hat</a>.</p>
        </script>
 <!-- Piwik --> 
 <script type="text/javascript">
-var pkBaseURL = (("https:" == document.location.protocol) ? "http://webstats.gnome.org/"; : 
"http://webstats.gnome.org/";);
+var pkBaseURL = (("https:" == document.location.protocol) ? "https://webstats.gnome.org/"; : 
"http://webstats.gnome.org/";);
 document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E"));
 </script><script type="text/javascript">
 try {
diff --git a/themes/news/index.html.tmpl b/themes/news/index.html.tmpl
index 2250f7e..8e3a2b9 100644
--- a/themes/news/index.html.tmpl
+++ b/themes/news/index.html.tmpl
@@ -317,7 +317,7 @@ Hosted by <a href="http://www.redhat.com/";>Red Hat</a>.</p>
        </script>
 <!-- Piwik --> 
 <script type="text/javascript">
-var pkBaseURL = (("https:" == document.location.protocol) ? "http://webstats.gnome.org/"; : 
"http://webstats.gnome.org/";);
+var pkBaseURL = (("https:" == document.location.protocol) ? "https://webstats.gnome.org/"; : 
"http://webstats.gnome.org/";);
 document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E"));
 </script><script type="text/javascript">
 try {


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