Convert HTTP links to MediaWiki.org to HTTPS
authorZoranzoki21 <zorandori4444@gmail.com>
Sun, 18 Mar 2018 12:58:15 +0000 (12:58 +0000)
committerZoranzoki21 <zorandori4444@gmail.com>
Wed, 4 Apr 2018 18:36:10 +0000 (18:36 +0000)
Bug: T189687
Change-Id: I846d3a74f617b98c8237f2a8babef85c6c128b14

includes/api/i18n/en.json
maintenance/findHooks.php
tests/phpunit/skins/SideBarTest.php

index d158b2c..35e164f 100644 (file)
@@ -2,7 +2,8 @@
        "@metadata": {
                "authors": [
                        "Anomie",
        "@metadata": {
                "authors": [
                        "Anomie",
-                       "Siebrand"
+                       "Siebrand",
+                       "Zoranzoki21"
                ]
        },
 
                ]
        },
 
        "apihelp-query+exturlusage-param-namespace": "The page namespaces to enumerate.",
        "apihelp-query+exturlusage-param-limit": "How many pages to return.",
        "apihelp-query+exturlusage-param-expandurl": "Expand protocol-relative URLs with the canonical protocol.",
        "apihelp-query+exturlusage-param-namespace": "The page namespaces to enumerate.",
        "apihelp-query+exturlusage-param-limit": "How many pages to return.",
        "apihelp-query+exturlusage-param-expandurl": "Expand protocol-relative URLs with the canonical protocol.",
-       "apihelp-query+exturlusage-example-simple": "Show pages linking to <kbd>http://www.mediawiki.org</kbd>.",
+       "apihelp-query+exturlusage-example-simple": "Show pages linking to <kbd>https://www.mediawiki.org</kbd>.",
 
        "apihelp-query+filearchive-summary": "Enumerate all deleted files sequentially.",
        "apihelp-query+filearchive-param-from": "The image title to start enumerating from.",
 
        "apihelp-query+filearchive-summary": "Enumerate all deleted files sequentially.",
        "apihelp-query+filearchive-param-from": "The image title to start enumerating from.",
index 9903c9e..ebb1f26 100644 (file)
@@ -217,7 +217,7 @@ class FindHooks extends Maintenance {
                $retval = [];
                while ( true ) {
                        $json = Http::get(
                $retval = [];
                while ( true ) {
                        $json = Http::get(
-                               wfAppendQuery( 'http://www.mediawiki.org/w/api.php', $params ),
+                               wfAppendQuery( 'https://www.mediawiki.org/w/api.php', $params ),
                                [],
                                __METHOD__
                        );
                                [],
                                __METHOD__
                        );
index dceaf41..ec85bb0 100644 (file)
@@ -104,10 +104,10 @@ class SideBarTest extends MediaWikiLangTestCase {
                ] );
                $this->assertSideBar(
                        [ 'Title' => [
                ] );
                $this->assertSideBar(
                        [ 'Title' => [
-                               # ** http://www.mediawiki.org/| Home
+                               # ** https://www.mediawiki.org/| Home
                                [
                                        'text' => 'Home',
                                [
                                        'text' => 'Home',
-                                       'href' => 'http://www.mediawiki.org/',
+                                       'href' => 'https://www.mediawiki.org/',
                                        'id' => 'n-Home',
                                        'active' => null,
                                        'rel' => 'nofollow',
                                        'id' => 'n-Home',
                                        'active' => null,
                                        'rel' => 'nofollow',
@@ -116,7 +116,7 @@ class SideBarTest extends MediaWikiLangTestCase {
                                # ... skipped since it is missing a pipe with a description
                        ] ],
                        '* Title
                                # ... skipped since it is missing a pipe with a description
                        ] ],
                        '* Title
-** http://www.mediawiki.org/| Home
+** https://www.mediawiki.org/| Home
 ** http://valid.no.desc.org/
 '
                );
 ** http://valid.no.desc.org/
 '
                );
@@ -160,7 +160,7 @@ class SideBarTest extends MediaWikiLangTestCase {
        private function getAttribs() {
                # Sidebar text we will use everytime
                $text = '* Title
        private function getAttribs() {
                # Sidebar text we will use everytime
                $text = '* Title
-** http://www.mediawiki.org/| Home';
+** https://www.mediawiki.org/| Home';
 
                $bar = [];
                $this->skin->addToSidebarPlain( $bar, $text );
 
                $bar = [];
                $this->skin->addToSidebarPlain( $bar, $text );