Modified: trunk/extensions/Renameuser/SpecialRenameuser_body.php
===================================================================
- $oldusername = Title::newFromText( $wgRequest->getText( 'oldusername'
) );
- $newusername = Title::newFromText( $wgRequest->getText( 'newusername'
) );
+ $oldusername = Title::newFromText( $wgRequest->getText( 'oldusername'
), NS_USER );
+ $newusername = Title::newFromText( $wgContLang->ucfirst(
$wgRequest->getText( 'newusername' ) ), NS_USER ); // Force uppercase of
newusername otherweise wikis with wgCapitalLinks=false can create lc
usernames
During fixing bug 4939 I found another bug. The oldusername was written
with NS0 into the logs (field 'log_namespace'), but it should by NS2 =
USER namespace. This I have corrected with above lines.
The problem is now, that older loglines still cointain NS0 for the
oldusername. This complicates log searching and is (now) inconsistent
with newer renames.
My question: Would it be possible to write a maintenance script or add
some lines to the updater script to update these loglines with NS0 -> NS2?
Or is this not a good idea because it's an extension only?
Raymond.
Show replies by date