From: Niklas Laxström Date: Fri, 19 Jun 2009 19:29:30 +0000 (+0000) Subject: * (bug 19294) Always show Sp-contributions-footer(-anon) X-Git-Tag: 1.31.0-rc.0~41287 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=263a773ef041a656da0c67daab49715721500044;p=lhc%2Fweb%2Fwiklou.git * (bug 19294) Always show Sp-contributions-footer(-anon) --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index c32411c5a8..3cd77d19db 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -195,6 +195,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * Show user preference 'Use live preview' if $wgLivePreview is enabled only * (bug 17014) Blocked users can no longer use Special:UserRights if they do not have the 'userrights' permission. +* (bug 19294) Always show Sp-contributions-footer(-anon) == API changes in 1.16 == diff --git a/includes/specials/SpecialContributions.php b/includes/specials/SpecialContributions.php index a61a9ea6f2..f5da505154 100644 --- a/includes/specials/SpecialContributions.php +++ b/includes/specials/SpecialContributions.php @@ -96,18 +96,18 @@ class SpecialContributions extends SpecialPage { $pager = new ContribsPager( $target, $this->opts['namespace'], $this->opts['year'], $this->opts['month'] ); if( !$pager->getNumRows() ) { $wgOut->addWikiMsg( 'nocontribs', $target ); - return; + } else { + # Show a message about slave lag, if applicable + if( ( $lag = $pager->getDatabase()->getLag() ) > 0 ) + $wgOut->showLagWarning( $lag ); + + $wgOut->addHTML( + '

' . $pager->getNavigationBar() . '

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

' . $pager->getNavigationBar() . '

' + ); } - # Show a message about slave lag, if applicable - if( ( $lag = $pager->getDatabase()->getLag() ) > 0 ) - $wgOut->showLagWarning( $lag ); - - $wgOut->addHTML( - '

' . $pager->getNavigationBar() . '

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

' . $pager->getNavigationBar() . '

' - ); # If there were contributions, and it was a valid user or IP, show # the appropriate "footer" message - WHOIS tools, etc. @@ -117,9 +117,8 @@ class SpecialContributions extends SpecialPage { $text = wfMsgNoTrans( $message, $target ); if( !wfEmptyMsg( $message, $text ) && $text != '-' ) { - $wgOut->addHTML( '' ); + $wgOut->wrapWikiMsg( + "", $message ); } } }