Dzahn has uploaded a new change for review.
https://gerrit.wikimedia.org/r/318484
Change subject: use https for wikis in $tables_with_suffix_wiki_last (w3c)
......................................................................
use https for wikis in $tables_with_suffix_wiki_last (w3c)
W3C wikis switched from http to https-only in 2016-05.
This broke updates (T149000), they all just got 301s.
We have a config option "$tables_https_only" but we don't
need to use that and add another check for that in the update.php
code since, for now, W3C wikis are the only ones with the
"$tables_with_suffix_wiki_last" URL format.
So we can just change the URL for those to use https, easier change.
Bug: T149000
Change-Id: I807bee25f5557eb7380454d479926f8cfe2c1bc6
---
M usr/lib/wikistats/update.php
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/debs/wikistats
refs/changes/84/318484/1
diff --git a/usr/lib/wikistats/update.php b/usr/lib/wikistats/update.php
index 29f426b..ebabfe8 100644
--- a/usr/lib/wikistats/update.php
+++ b/usr/lib/wikistats/update.php
@@ -332,7 +332,7 @@
$url="http://${domain}/wiki/".$row['prefix']."/api.php${api_query_stat}";
} elseif (in_array($table, $tables_with_suffix_wiki_last)) {
$prefix=$row['prefix'];
-
$url="http://${domain}/".$row['prefix']."/wiki/api.php${api_query_stat}";
+
$url="https://${domain}/".$row['prefix']."/wiki/api.php${api_query_stat}";
} elseif (in_array($table, $tables_https_only)) {
$prefix=$row['prefix'];
$url="https://${prefix}.${domain}/w/api.php${api_query_stat}";
--
To view, visit https://gerrit.wikimedia.org/r/318484
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I807bee25f5557eb7380454d479926f8cfe2c1bc6
Gerrit-PatchSet: 1
Gerrit-Project: operations/debs/wikistats
Gerrit-Branch: master
Gerrit-Owner: Dzahn <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits