From: Kunal Mehta Date: Wed, 6 Aug 2014 17:15:29 +0000 (+0100) Subject: SpecialWantedPages: Use Config instead of globals X-Git-Tag: 1.31.0-rc.0~14554^2 X-Git-Url: https://git.cyclocoop.org/admin/?a=commitdiff_plain;h=fddde83317ffec937c45c13aa9714d617f9250a4;p=lhc%2Fweb%2Fwiklou.git SpecialWantedPages: Use Config instead of globals Change-Id: I1969af7c5367f13493b4ba938f20972bb8a72ce1 --- diff --git a/includes/specials/SpecialWantedpages.php b/includes/specials/SpecialWantedpages.php index c54d9f4399..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',