Dzahn has submitted this change and it was merged. Change subject: fix w3c and sourceforge wiki updates ......................................................................
fix w3c and sourceforge wiki updates Both the W3C and Sourceforge wiki tables were not updating correctly anymore. The option for this type of URL scheme was missing. Bug:T97834 Change-Id: I956689f0408650977efdad8c14289582cd4f02fb --- M etc/wikistats/config.php M usr/lib/wikistats/update.php 2 files changed, 4 insertions(+), 1 deletion(-) Approvals: Dzahn: Verified; Looks good to me, approved diff --git a/etc/wikistats/config.php b/etc/wikistats/config.php index b596ba4..5eb9009 100644 --- a/etc/wikistats/config.php +++ b/etc/wikistats/config.php @@ -79,7 +79,7 @@ $tables_with_suffix_wiki=array('wikitravel'); # list tables with URLs like domain.org/<name>/wiki/api.php -$tables_with_suffix_wiki_last=array('w3cwikis'); +$tables_with_suffix_wiki_last=array('w3cwikis','sourceforge'); # list tables for which we save a full statistics URL in db $tables_with_statsurl=array('mediawikis','uncyclomedia','metapedias','wmspecials', 'wikifur'); diff --git a/usr/lib/wikistats/update.php b/usr/lib/wikistats/update.php index 86a564d..ad83c4b 100644 --- a/usr/lib/wikistats/update.php +++ b/usr/lib/wikistats/update.php @@ -319,6 +319,9 @@ } elseif (in_array($table, $tables_with_suffix_wiki)) { $prefix=$row['prefix']; $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}"; } else { $prefix=$row['prefix']; $url="http://${prefix}.${domain}/w/api.php${api_query_stat}"; -- To view, visit https://gerrit.wikimedia.org/r/208314 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I956689f0408650977efdad8c14289582cd4f02fb Gerrit-PatchSet: 1 Gerrit-Project: operations/debs/wikistats Gerrit-Branch: master Gerrit-Owner: Dzahn <dz...@wikimedia.org> Gerrit-Reviewer: Dzahn <dz...@wikimedia.org> Gerrit-Reviewer: RobiH <ro...@gmx.de> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits