Removed unneeded NS_MAIN special case for index usage
authorAaron Schulz <aaron@users.mediawiki.org>
Tue, 31 Mar 2009 15:55:23 +0000 (15:55 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Tue, 31 Mar 2009 15:55:23 +0000 (15:55 +0000)
includes/specials/SpecialRecentchanges.php

index 91c0ecb..4d41608 100644 (file)
@@ -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,