r60906 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r60905‎ | r60906 | r60907 >
Date:18:45, 10 January 2010
Author:ialex
Status:ok
Tags:
Comment:
Allow to use "Special:Renameuser/Old user name" as shortcut
Modified paths:
  • /trunk/extensions/Renameuser/SpecialRenameuser_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Renameuser/SpecialRenameuser_body.php
@@ -43,7 +43,7 @@
4444 }
4545
4646 $showBlockLog = $wgRequest->getBool( 'submit-showBlockLog' );
47 - $oldnamePar = trim( str_replace( '_', ' ', $wgRequest->getText( 'oldusername' ) ) );
 47+ $oldnamePar = trim( str_replace( '_', ' ', $wgRequest->getText( 'oldusername', $par ) ) );
4848 $oldusername = Title::makeTitle( NS_USER, $oldnamePar );
4949 // Force uppercase of newusername, otherwise wikis with wgCapitalLinks=false can create lc usernames
5050 $newusername = Title::makeTitleSafe( NS_USER, $wgContLang->ucfirst( $wgRequest->getText( 'newusername' ) ) );

Status & tagging log