r70266 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r70265‎ | r70266 | r70267 >
Date:09:04, 1 August 2010
Author:ialex
Status:ok
Tags:
Comment:
Only add the link on user contributions page if it's a registred account
Modified paths:
  • /trunk/extensions/Renameuser/Renameuser.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Renameuser/Renameuser.php
@@ -79,7 +79,7 @@
8080 function wfRenameuserOnContribsLink( $id, $nt, &$tools ) {
8181 global $wgUser;
8282
83 - if ( $wgUser->isAllowed( 'renameuser' ) ) {
 83+ if ( $wgUser->isAllowed( 'renameuser' ) && $id ) {
8484 $sk = $wgUser->getSkin();
8585 $tools[] = $sk->link(
8686 SpecialPage::getTitleFor( 'Renameuser' ),

Status & tagging log