Index: trunk/phase3/includes/specials/SpecialContributions.php |
— | — | @@ -96,19 +96,19 @@ |
97 | 97 | $pager = new ContribsPager( $target, $this->opts['namespace'], $this->opts['year'], $this->opts['month'] ); |
98 | 98 | if( !$pager->getNumRows() ) { |
99 | 99 | $wgOut->addWikiMsg( 'nocontribs', $target ); |
100 | | - return; |
| 100 | + } else { |
| 101 | + # Show a message about slave lag, if applicable |
| 102 | + if( ( $lag = $pager->getDatabase()->getLag() ) > 0 ) |
| 103 | + $wgOut->showLagWarning( $lag ); |
| 104 | + |
| 105 | + $wgOut->addHTML( |
| 106 | + '<p>' . $pager->getNavigationBar() . '</p>' . |
| 107 | + $pager->getBody() . |
| 108 | + '<p>' . $pager->getNavigationBar() . '</p>' |
| 109 | + ); |
101 | 110 | } |
102 | 111 | |
103 | | - # Show a message about slave lag, if applicable |
104 | | - if( ( $lag = $pager->getDatabase()->getLag() ) > 0 ) |
105 | | - $wgOut->showLagWarning( $lag ); |
106 | 112 | |
107 | | - $wgOut->addHTML( |
108 | | - '<p>' . $pager->getNavigationBar() . '</p>' . |
109 | | - $pager->getBody() . |
110 | | - '<p>' . $pager->getNavigationBar() . '</p>' |
111 | | - ); |
112 | | - |
113 | 113 | # If there were contributions, and it was a valid user or IP, show |
114 | 114 | # the appropriate "footer" message - WHOIS tools, etc. |
115 | 115 | if( $target != 'newbies' ) { |
— | — | @@ -117,9 +117,8 @@ |
118 | 118 | |
119 | 119 | $text = wfMsgNoTrans( $message, $target ); |
120 | 120 | if( !wfEmptyMsg( $message, $text ) && $text != '-' ) { |
121 | | - $wgOut->addHTML( '<div class="mw-contributions-footer">' ); |
122 | | - $wgOut->addWikiText( $text ); |
123 | | - $wgOut->addHTML( '</div>' ); |
| 121 | + $wgOut->wrapWikiMsg( |
| 122 | + "<div class='mw-contributions-footer'>\n$1\n</div>", $message ); |
124 | 123 | } |
125 | 124 | } |
126 | 125 | } |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -195,6 +195,7 @@ |
196 | 196 | * Show user preference 'Use live preview' if $wgLivePreview is enabled only |
197 | 197 | * (bug 17014) Blocked users can no longer use Special:UserRights if they do |
198 | 198 | not have the 'userrights' permission. |
| 199 | +* (bug 19294) Always show Sp-contributions-footer(-anon) |
199 | 200 | |
200 | 201 | == API changes in 1.16 == |
201 | 202 | |