Fo0bar has submitted this change and it was merged.

Change subject: Allow template use on HTTPS sites
......................................................................


Allow template use on HTTPS sites

When the default template is served on an HTTPS site, the CSE block is not
served due to a mixed content error.  Use the // protocol format instead
to automatically choose http/https.

Change-Id: Ic0009bc60d8a86d180126d82f9f06406727b45ac
---
M GoogleSiteSearch.content.default.html
1 file changed, 2 insertions(+), 2 deletions(-)

Approvals:
  Fo0bar: Verified; Looks good to me, approved



diff --git a/GoogleSiteSearch.content.default.html 
b/GoogleSiteSearch.content.default.html
index ae82652..7cb654e 100644
--- a/GoogleSiteSearch.content.default.html
+++ b/GoogleSiteSearch.content.default.html
@@ -1,5 +1,5 @@
 <div id="cse" style="width: 100%;">_GSS_LOADING_</div>
-<script src="http://www.google.com/jsapi"; type="text/javascript"></script>
+<script src="//www.google.com/jsapi" type="text/javascript"></script>
 <script type="text/javascript">
   google.load('search', '1', {language : _GSS_LANG_});
   google.setOnLoadCallback(function() {
@@ -9,4 +9,4 @@
     customSearchControl.execute(_GSS_TERM_ESCAPE_);
   }, true);
 </script>
-<link rel="stylesheet" href="http://www.google.com/cse/style/look/default.css"; 
type="text/css" />
+<link rel="stylesheet" href="//www.google.com/cse/style/look/default.css" 
type="text/css" />

-- 
To view, visit https://gerrit.wikimedia.org/r/125584
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ic0009bc60d8a86d180126d82f9f06406727b45ac
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/GoogleSiteSearch
Gerrit-Branch: master
Gerrit-Owner: Fo0bar <r...@finnie.org>
Gerrit-Reviewer: Fo0bar <r...@finnie.org>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to