From: JuneHyeon Bae Date: Mon, 2 Jun 2014 01:12:34 +0000 (+0900) Subject: Do not show page navigation on included Special:Contributions page X-Git-Tag: 1.31.0-rc.0~15426 X-Git-Url: https://git.cyclocoop.org/%28%28?a=commitdiff_plain;h=78e9697d52d70d3ab6ce4386c48b9900bb1eaaa6;p=lhc%2Fweb%2Fwiklou.git Do not show page navigation on included Special:Contributions page Bug: 65780 Change-Id: Ie1f96d62e0f7b8c1066aaecc5e8ba528fb94cbf7 --- 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() );