Allow blacklisting certain namespaces in Special:ShortPages
authorjdlrobson <jdlrobson@gmail.com>
Thu, 27 Jul 2017 23:29:21 +0000 (16:29 -0700)
committerPiotr Miazga <piotr@polishdeveloper.pl>
Mon, 31 Jul 2017 22:21:12 +0000 (00:21 +0200)
commit115fe784b549bdf5e8053d025d07106d8475d2d3
tree8a16817ca1867d63914d623ade7f0c4531e35f4a
parent54064372aaa43c0518e4130738a39ffdf06cca23
Allow blacklisting certain namespaces in Special:ShortPages

This new config variable ($wgShortPagesNamespaceBlacklist)
allows wikis to specify namespaces which should be excluded from
Special:ShortPages.

This will be used by Commons, for which NS_FILE is a content namespace
(accessible via Special:Random and Special:Nearby) but is not useful
to list on Special:ShortPages.

If the blacklist cancels out all namespace in wgContentNamespaces then
all namespaces will show up on the page.

Bug: T170687
Change-Id: I10b4849a5d7f3f8af75ccc6cfba230d03725c898
includes/DefaultSettings.php
includes/specials/SpecialShortpages.php
tests/phpunit/includes/specials/SpecialShortpagesTest.php [new file with mode: 0644]