invert without namespace doesn't do anything, so ignore it
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Wed, 1 Sep 2010 19:30:41 +0000 (19:30 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Wed, 1 Sep 2010 19:30:41 +0000 (19:30 +0000)
includes/specials/SpecialRecentchanges.php

index 0719d0d..0a9ad82 100644 (file)
@@ -342,8 +342,8 @@ class SpecialRecentChanges extends IncludableSpecialPage {
                // (b) We want all pages NOT in a certain namespaces (inverted)
                // (c) There is a tag to filter on (use tag index instead)
                // (d) UNION + sort/limit is not an option for the DBMS
-               if( is_null($namespace)
-                       || $invert
+               if( is_null( $namespace )
+                       || ( $invert && !is_null( $namespace ) )
                        || $opts['tagfilter'] != ''
                        || !$dbr->unionSupportsOrderAndLimit() )
                {