From c1f9b1f7b1b77776192048005dcc66dcf3df2bfb Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Sat, 27 Dec 2014 15:41:37 +0100 Subject: Update to MediaWiki 1.24.1 --- includes/specials/SpecialWantedpages.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'includes/specials/SpecialWantedpages.php') diff --git a/includes/specials/SpecialWantedpages.php b/includes/specials/SpecialWantedpages.php index acec4ea4..38f1808f 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; } -- cgit v1.2.2