Index: trunk/phase3/includes/SpecialLog.php |
— | — | @@ -401,10 +401,15 @@ |
402 | 402 | wfMsg( 'protect_change' ), |
403 | 403 | 'action=unprotect' ) . ')'; |
404 | 404 | // show user tool links for self created users |
| 405 | + // TODO: The extension should be handling this, get it out of core! |
405 | 406 | } elseif ( $s->log_action == 'create2' ) { |
406 | | - $revert = $this->skin->userToolLinksRedContribs( $s->log_user, $s->log_title ); |
407 | | - // do not show $comment for self created accounts. It includes wrong user tool links: |
408 | | - // 'blockip' for users w/o block allowance and broken links for very long usernames (bug 4756) |
| 407 | + if( isset( $paramArray[0] ) ) { |
| 408 | + $revert = $this->skin->userToolLinks( $paramArray[0], $s->log_title, true ); |
| 409 | + } else { |
| 410 | + # Fall back to a blue contributions link |
| 411 | + $revert = $this->skin->userToolLinks( 1, $s->log_title ); |
| 412 | + } |
| 413 | + # Suppress $comment from old entries, not needed and can contain incorrect links |
409 | 414 | $comment = ''; |
410 | 415 | } |
411 | 416 | |