Changed query parameter for the username in Special:Listfiles from username to user, which seems to be more consistent with the rest of MediaWiki. Searching by username was introduced in 1.17, so there should be no existing links that can be broken.
Parameters: $1 shows the formatted textsize in Byte/KB/MB, $2 is the raw
number of the textsize in Byte
* (bug 3276) Give image <gallery>s fluid width
+* Added uploads link to page subtitle in Special:Contributions
=== Bug fixes in 1.17 ===
* (bug 17560) Half-broken deletion moved image files to deletion archive
)
);
}
+ # Uploads
+ $tools[] = $sk->linkKnown(
+ SpecialPage::getTitleFor( 'Listfiles' ),
+ wfMsgHtml( 'sp-contributions-uploads' ),
+ array(),
+ array( 'user' => $nt->getText() )
+ );
+
# Other logs link
$tools[] = $sk->linkKnown(
SpecialPage::getTitleFor( 'Log' ),
$this->mDefaultDirection = false;
}
- $userName = $wgRequest->getText( 'username', $par );
+ $userName = $wgRequest->getText( 'user', $par );
if ( $userName ) {
$nt = Title::newFromText( $userName, NS_USER );
if ( !is_null( $nt ) ) {
'id' => 'mw-ilsearch',
) );
}
- $inputForm['username'] = Html::input( 'username', $this->mUserName, 'text', array(
+ $inputForm['username'] = Html::input( 'user', $this->mUserName, 'text', array(
'size' => '40',
'maxlength' => '255',
- 'id' => 'mw-listfiles-username',
+ 'id' => 'mw-listfiles-user',
) );
$s = Html::openElement( 'form', array( 'method' => 'get', 'action' => $wgScript, 'id' => 'mw-listfiles-form' ) ) .
Xml::fieldset( wfMsg( 'listfiles' ) ) .
'sp-contributions-newbies-title' => 'User contributions for new accounts',
'sp-contributions-blocklog' => 'block log',
'sp-contributions-deleted' => 'deleted user contributions',
+'sp-contributions-uploads' => 'uploads',
'sp-contributions-logs' => 'logs',
'sp-contributions-talk' => 'talk',
'sp-contributions-userrights' => 'user rights management',
'sp-contributions-newbies-title',
'sp-contributions-blocklog',
'sp-contributions-deleted',
+ 'sp-contributions-uploads',
'sp-contributions-logs',
'sp-contributions-talk',
'sp-contributions-userrights',