r52773 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r52772‎ | r52773 | r52774 >
Date:11:59, 5 July 2009
Author:nikerabbit
Status:ok
Tags:
Comment:
Small fixes
Modified paths:
  • /trunk/phase3/includes/specials/SpecialContributions.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialContributions.php
@@ -109,8 +109,7 @@
110110 }
111111
112112
113 - # If there were contributions, and it was a valid user or IP, show
114 - # the appropriate "footer" message - WHOIS tools, etc.
 113+ # Show the appropriate "footer" message - WHOIS tools, etc.
115114 if( $target != 'newbies' ) {
116115 $message = IP::isIPAddress( $target ) ?
117116 'sp-contributions-footer-anon' : 'sp-contributions-footer';
@@ -174,7 +173,7 @@
175174 # Other logs link
176175 $tools[] = $sk->linkKnown(
177176 SpecialPage::getTitleFor( 'Log' ),
178 - wfMsg( 'sp-contributions-logs' ),
 177+ wfMsgHtml( 'sp-contributions-logs' ),
179178 array(),
180179 array( 'user' => $nt->getText() )
181180 );
@@ -219,7 +218,7 @@
220219 protected function getForm() {
221220 global $wgScript;
222221
223 - $this->opts['title'] = SpecialPage::getTitleFor( 'Contributions' )->getPrefixedText();
 222+ $this->opts['title'] = $this->getTitle()->getPrefixedText();
224223 if( !isset( $this->opts['target'] ) ) {
225224 $this->opts['target'] = '';
226225 } else {
@@ -263,7 +262,7 @@
264263
265264 $f .= '<fieldset>' .
266265 Xml::element( 'legend', array(), wfMsg( 'sp-contributions-search' ) ) .
267 - Xml::radioLabel( wfMsgExt( 'sp-contributions-newbies', array( 'parseinline' ) ),
 266+ Xml::radioLabel( wfMsgExt( 'sp-contributions-newbies', array( 'parsemag' ) ),
268267 'contribs', 'newbie' , 'newbie', $this->opts['contribs'] == 'newbie' ? true : false ) . '<br />' .
269268 Xml::radioLabel( wfMsgExt( 'sp-contributions-username', array( 'parsemag' ) ),
270269 'contribs' , 'user', 'user', $this->opts['contribs'] == 'user' ? true : false ) . ' ' .

Status & tagging log