X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialWantedpages.php;h=38f1808f7aaaeda0065873aa022e5ca03f97595e;hb=396927c0b6b06a148767df431eca697f078bb55f;hp=acec4ea455d6639883654bdb6ac093fdcfb4ae1c;hpb=83d509123c35196df82e01824ded68ef6fbf0cee;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialWantedpages.php b/includes/specials/SpecialWantedpages.php index acec4ea455..38f1808f7a 100644 --- a/includes/specials/SpecialWantedpages.php +++ b/includes/specials/SpecialWantedpages.php @@ -54,8 +54,7 @@ class WantedPagesPage extends WantedQueryPage { } function getQueryInfo() { - global $wgWantedPagesThreshold; - $count = $wgWantedPagesThreshold - 1; + $count = $this->getConfig()->get( 'WantedPagesThreshold' ) - 1; $query = array( 'tables' => array( 'pagelinks', @@ -69,8 +68,7 @@ class WantedPagesPage extends WantedQueryPage { ), 'conds' => array( 'pg1.page_namespace IS NULL', - "pl_namespace NOT IN ( '" . NS_USER . - "', '" . NS_USER_TALK . "' )", + "pl_namespace NOT IN ( '" . NS_USER . "', '" . NS_USER_TALK . "' )", "pg2.page_namespace != '" . NS_MEDIAWIKI . "'" ), 'options' => array( @@ -89,6 +87,7 @@ class WantedPagesPage extends WantedQueryPage { ); // Replacement for the WantedPages::getSQL hook wfRunHooks( 'WantedPages::getQueryInfo', array( &$this, &$query ) ); + return $query; }