From fddde83317ffec937c45c13aa9714d617f9250a4 Mon Sep 17 00:00:00 2001 From: Kunal Mehta Date: Wed, 6 Aug 2014 18:15:29 +0100 Subject: [PATCH] SpecialWantedPages: Use Config instead of globals Change-Id: I1969af7c5367f13493b4ba938f20972bb8a72ce1 --- includes/specials/SpecialWantedpages.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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', -- 2.20.1