Make $wgUseTagFilter disable just filtering, rather than all display query modification
authorAndrew Garrett <werdna@users.mediawiki.org>
Tue, 24 Feb 2009 22:27:27 +0000 (22:27 +0000)
committerAndrew Garrett <werdna@users.mediawiki.org>
Tue, 24 Feb 2009 22:27:27 +0000 (22:27 +0000)
includes/ChangeTags.php

index 9679aed..7432086 100644 (file)
@@ -93,10 +93,6 @@ class ChangeTags {
        static function modifyDisplayQuery( &$tables, &$fields,  &$conds, &$join_conds, $filter_tag = false ) {
                global $wgRequest, $wgUseTagFilter;
                
-               if( !$wgUseTagFilter ) {
-                       return;
-               }
-               
                if ($filter_tag === false) {
                        $filter_tag = $wgRequest->getVal( 'tagfilter' );
                }
@@ -118,7 +114,7 @@ class ChangeTags {
                $join_conds['tag_summary'] = array( 'LEFT JOIN', "ts_$join_cond=$join_cond" );
                $fields[] = 'ts_tags';
                
-               if ($filter_tag) {
+               if ($wgUseTagFilter && $filter_tag) {
                        // Somebody wants to filter on a tag.
                        // Add an INNER JOIN on change_tag