Do not show page navigation on included Special:Contributions page
authorJuneHyeon Bae <devunt@gmail.com>
Mon, 2 Jun 2014 01:12:34 +0000 (10:12 +0900)
committerBrian Wolff <bawolff+wn@gmail.com>
Tue, 10 Jun 2014 00:29:42 +0000 (00:29 +0000)
Bug: 65780
Change-Id: Ie1f96d62e0f7b8c1066aaecc5e8ba528fb94cbf7

includes/specials/SpecialContributions.php

index 0571d0d..7481b0c 100644 (file)
@@ -203,11 +203,13 @@ class SpecialContributions extends IncludableSpecialPage {
                                        $out->showLagWarning( $lag );
                                }
 
-                               $out->addHTML(
-                                       '<p>' . $pager->getNavigationBar() . '</p>' .
-                                               $pager->getBody() .
-                                               '<p>' . $pager->getNavigationBar() . '</p>'
-                               );
+                               $output = $pager->getBody();
+                               if ( !$this->including() ) {
+                                       $output = '<p>' . $pager->getNavigationBar() . '</p>' .
+                                               $output.
+                                               '<p>' . $pager->getNavigationBar() . '</p>';
+                               }
+                               $out->addHTML( $output );
                        }
                        $out->preventClickjacking( $pager->getPreventClickjacking() );