From 78e9697d52d70d3ab6ce4386c48b9900bb1eaaa6 Mon Sep 17 00:00:00 2001 From: JuneHyeon Bae Date: Mon, 2 Jun 2014 10:12:34 +0900 Subject: [PATCH] Do not show page navigation on included Special:Contributions page Bug: 65780 Change-Id: Ie1f96d62e0f7b8c1066aaecc5e8ba528fb94cbf7 --- includes/specials/SpecialContributions.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/includes/specials/SpecialContributions.php b/includes/specials/SpecialContributions.php index 0571d0de68..7481b0c226 100644 --- a/includes/specials/SpecialContributions.php +++ b/includes/specials/SpecialContributions.php @@ -203,11 +203,13 @@ class SpecialContributions extends IncludableSpecialPage { $out->showLagWarning( $lag ); } - $out->addHTML( - '

' . $pager->getNavigationBar() . '

' . - $pager->getBody() . - '

' . $pager->getNavigationBar() . '

' - ); + $output = $pager->getBody(); + if ( !$this->including() ) { + $output = '

' . $pager->getNavigationBar() . '

' . + $output. + '

' . $pager->getNavigationBar() . '

'; + } + $out->addHTML( $output ); } $out->preventClickjacking( $pager->getPreventClickjacking() ); -- 2.20.1