* (bug 4624) Namespace selection for Special:Whatlinkshere
* Introduce PageHistoryBeforeList and PageHistoryLineEnding hooks; see docs/hooks.txt
for more information
+* (bug 9397) Introduce "sp-contributions-footer" and "sp-contributions-footer-anon"
+ messages, shown at the end of Special:Contributions as appropriate for the target
== Bugfixes since 1.9 ==
* (bug 7292) Fix site statistics when moving pages in/out of content namespaces
$wgOut->addHTML( "</ul>\n" );
$wgOut->addHTML( "<p>{$prevnextbits}</p>\n" );
+
+ # If there were contributions, and it was a valid user or IP, show
+ # the appropriate "footer" message - WHOIS tools, etc.
+ if( count( $contribs ) > 0 && $target != 'newbies' && $nt instanceof Title ) {
+ $message = IP::isIPAddress( $target )
+ ? 'sp-contributions-footer-anon'
+ : 'sp-contributions-footer';
+ $text = wfMsg( $message, $target );
+ if( !wfEmptyMsg( $message, $text ) && $text != '-' ) {
+ $wgOut->addHtml( '<div class="mw-contributions-footer">' );
+ $wgOut->addWikiText( wfMsg( $message, $target ) );
+ $wgOut->addHtml( '</div>' );
+ }
+ }
+
}
/**
'sp-contributions-search' => 'Search for contributions',
'sp-contributions-username' => 'IP Address or username:',
'sp-contributions-submit' => 'Search',
+'sp-contributions-footer' => '-',
+'sp-contributions-footer-anon' => '-',
'sp-newimages-showfrom' => 'Show new images starting from $1',
'sp-contributions-search',
'sp-contributions-username',
'sp-contributions-submit',
+ 'sp-contributions-footer',
+ 'sp-contributions-footer-anon',
),
'newimages-showfrom' => array(
'sp-newimages-showfrom',