Anomie has uploaded a new change for review. https://gerrit.wikimedia.org/r/73035
Change subject: Mark DisambiguationPages as "useless" for the API ...................................................................... Mark DisambiguationPages as "useless" for the API The API has a module, list=querypages, that allows for fetching results from any arbitrary QueryPage. And since some of these are entirely redundant to actual query modules, it has a mechanism for excluding certain pages from the list. Special:DisambiguationPages is one of those "useless" query pages, as it is entirely redundant to list=pageswithprop&pwpprop=disambiguation. Note this needs Ieccd2e84 to have any effect, but should not cause any problems if that is not merged. Change-Id: I17c3a8aa4acce843e4438be1776ffa1a58376c0c --- M Disambiguator.php 1 file changed, 3 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Disambiguator refs/changes/35/73035/1 diff --git a/Disambiguator.php b/Disambiguator.php index 8281486..fdbe6a8 100644 --- a/Disambiguator.php +++ b/Disambiguator.php @@ -58,6 +58,9 @@ $wgSpecialPages['DisambiguationPageLinks'] = 'SpecialDisambiguationPageLinks'; $wgSpecialPageGroups['DisambiguationPageLinks'] = 'pages'; +// No need for this in the API +$wgAPIUselessQueryPages[] = 'DisambiguationPages'; // list=pageswithprop&pwpprop=disambiguation + /* Configuration */ // TODO: Allow disambiguation links to be assigned a unique class -- To view, visit https://gerrit.wikimedia.org/r/73035 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I17c3a8aa4acce843e4438be1776ffa1a58376c0c Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/Disambiguator Gerrit-Branch: master Gerrit-Owner: Anomie <[email protected]> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
