X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fspecials%2FSpecialShortpages.php;h=e9c15e7bed2f58000d23077a1b98dc7bb9c2b14e;hp=f980e7112c37992c6e81422cae6182939b45886c;hb=2480aae0c97d822e10b50619e7b48b25c45af073;hpb=28c96dbb83a27f23d1295a9cd621f9ba7a1462ff diff --git a/includes/specials/SpecialShortpages.php b/includes/specials/SpecialShortpages.php index f980e7112c..e9c15e7bed 100644 --- a/includes/specials/SpecialShortpages.php +++ b/includes/specials/SpecialShortpages.php @@ -41,9 +41,11 @@ class ShortPagesPage extends QueryPage { } public function getQueryInfo() { + $config = $this->getConfig(); + $blacklist = $config->get( 'ShortPagesNamespaceBlacklist' ); $tables = [ 'page' ]; $conds = [ - 'page_namespace' => MWNamespace::getContentNamespaces(), + 'page_namespace' => array_diff( MWNamespace::getContentNamespaces(), $blacklist ), 'page_is_redirect' => 0 ]; $joinConds = [];