Index: trunk/extensions/Oversight/HideRevision_body.php |
— | — | @@ -606,7 +606,12 @@ |
607 | 607 | $this->namespace = $title ? $title->getNamespace() : -1; |
608 | 608 | $this->dbKey = $title ? $title->getDBKey() : null; |
609 | 609 | $this->uid = $user ? $user->getId() : null; |
610 | | - $this->author = strlen($offender) ? $offender : null; |
| 610 | + if ( strlen($offender) ) { |
| 611 | + $offender = User::newFromName( $offender ); |
| 612 | + $this->author = is_null( $offender ) ? '' : $offender->getName(); |
| 613 | + } else { |
| 614 | + $this->author = null; |
| 615 | + } |
611 | 616 | |
612 | 617 | parent::__construct(); |
613 | 618 | } |