SpecialWantedPages: Use Config instead of globals
authorKunal Mehta <legoktm@gmail.com>
Wed, 6 Aug 2014 17:15:29 +0000 (18:15 +0100)
committerLegoktm <legoktm.wikipedia@gmail.com>
Wed, 6 Aug 2014 17:16:19 +0000 (17:16 +0000)
Change-Id: I1969af7c5367f13493b4ba938f20972bb8a72ce1

includes/specials/SpecialWantedpages.php

index c54d9f4..38f1808 100644 (file)
@@ -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',