(bug 23293) Don't show change tags when special:rc/rclinked/newpages is transcluded
[lhc/web/wiklou.git] / includes / specials / SpecialRecentchangeslinked.php
index e72157c..387679f 100644 (file)
@@ -104,9 +104,10 @@ class SpecialRecentchangeslinked extends SpecialRecentchanges {
                        $join_conds['page'] = array('LEFT JOIN', 'rc_cur_id=page_id');
                        $select[] = 'page_latest';
                }
-
-               ChangeTags::modifyDisplayQuery( $tables, $select, $conds, $join_conds,
-                       $query_options, $opts['tagfilter'] );
+               if ( !$this->including() ) { // bug 23293
+                       ChangeTags::modifyDisplayQuery( $tables, $select, $conds, $join_conds,
+                               $query_options, $opts['tagfilter'] );
+               }
 
                // XXX: parent class does this, should we too?
                // wfRunHooks('SpecialRecentChangesQuery', array( &$conds, &$tables, &$join_conds, $opts ) );