Don't show header if including
authorAaron Schulz <aaron@users.mediawiki.org>
Wed, 8 Oct 2008 21:30:21 +0000 (21:30 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Wed, 8 Oct 2008 21:30:21 +0000 (21:30 +0000)
includes/specials/SpecialRecentchanges.php

index c6a0a47..072891f 100644 (file)
@@ -98,7 +98,9 @@ class SpecialRecentChanges extends SpecialPage {
                $conds = $this->buildMainQueryConds( $opts );
                $rows = $this->doMainQuery( $conds, $opts );
                if( $rows === false ){
-                       $this->doHeader( $opts );
+                       if( !$this->including() ) {
+                               $this->doHeader( $opts );
+                       }
                        return;
                }