From: Aaron Schulz Date: Tue, 31 Mar 2009 15:55:23 +0000 (+0000) Subject: Removed unneeded NS_MAIN special case for index usage X-Git-Tag: 1.31.0-rc.0~42258 X-Git-Url: http://git.cyclocoop.org///%22%40url%40//%22?a=commitdiff_plain;h=e0ea274f4f79ddb7a9a4cdb249e907826609dec6;p=lhc%2Fweb%2Fwiklou.git Removed unneeded NS_MAIN special case for index usage --- 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,