Index: trunk/phase3/includes/Article.php |
— | — | @@ -3197,8 +3197,12 @@ |
3198 | 3198 | $newId = $details['newid']; |
3199 | 3199 | $wgOut->setPageTitle( wfMsg( 'actioncomplete' ) ); |
3200 | 3200 | $wgOut->setRobotPolicy( 'noindex,nofollow' ); |
3201 | | - $old = $wgUser->getSkin()->userLink( $current->getUser(), $current->getUserText() ) |
3202 | | - . $wgUser->getSkin()->userToolLinks( $current->getUser(), $current->getUserText() ); |
| 3201 | + if ( $current->getUserText() === '' ) { |
| 3202 | + $old = wfMsg( 'rev-deleted-user' ); |
| 3203 | + } else { |
| 3204 | + $old = $wgUser->getSkin()->userLink( $current->getUser(), $current->getUserText() ) |
| 3205 | + . $wgUser->getSkin()->userToolLinks( $current->getUser(), $current->getUserText() ); |
| 3206 | + } |
3203 | 3207 | $new = $wgUser->getSkin()->userLink( $target->getUser(), $target->getUserText() ) |
3204 | 3208 | . $wgUser->getSkin()->userToolLinks( $target->getUser(), $target->getUserText() ); |
3205 | 3209 | $wgOut->addHTML( wfMsgExt( 'rollback-success', array( 'parse', 'replaceafter' ), $old, $new ) ); |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -681,6 +681,8 @@ |
682 | 682 | for namespace) |
683 | 683 | * (bug 20765) Special:ListGroupRights no longer misses addables and removables |
684 | 684 | groups if there are duplicate entries |
| 685 | +* (bug 21814) Message shown when rolling back an edit with a deleted username |
| 686 | + now shows '(username deleted)' instead of broken user tool links |
685 | 687 | |
686 | 688 | == API changes in 1.16 == |
687 | 689 | |