From e0ea274f4f79ddb7a9a4cdb249e907826609dec6 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Tue, 31 Mar 2009 15:55:23 +0000 Subject: [PATCH] Removed unneeded NS_MAIN special case for index usage --- includes/specials/SpecialRecentchanges.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/specials/SpecialRecentchanges.php b/includes/specials/SpecialRecentchanges.php index 91c0ecbedb..4d41608c92 100644 --- a/includes/specials/SpecialRecentchanges.php +++ b/includes/specials/SpecialRecentchanges.php @@ -306,7 +306,7 @@ class SpecialRecentChanges extends SpecialPage { // Is there either one namespace selected or excluded? // Tag filtering also has a better index. // Also, if this is "all" or main namespace, just use timestamp index. - if( is_null($namespace) || $invert || $namespace == NS_MAIN || $opts['tagfilter'] ) { + if( is_null($namespace) || $invert || $opts['tagfilter'] ) { $res = $dbr->select( $tables, '*', $conds, __METHOD__, array( 'ORDER BY' => 'rc_timestamp DESC', 'LIMIT' => $limit ) + $query_options, -- 2.20.1