@@ 630-642 (lines=13) @@ | ||
627 | * which parts of the log entry has been hidden. |
|
628 | * @return string |
|
629 | */ |
|
630 | public function getPerformerElement() { |
|
631 | if ( $this->canView( LogPage::DELETED_USER ) ) { |
|
632 | $performer = $this->entry->getPerformer(); |
|
633 | $element = $this->makeUserLink( $performer ); |
|
634 | if ( $this->entry->isDeleted( LogPage::DELETED_USER ) ) { |
|
635 | $element = $this->styleRestricedElement( $element ); |
|
636 | } |
|
637 | } else { |
|
638 | $element = $this->getRestrictedElement( 'rev-deleted-user' ); |
|
639 | } |
|
640 | ||
641 | return $element; |
|
642 | } |
|
643 | ||
644 | /** |
|
645 | * Gets the user provided comment |
|
@@ 648-661 (lines=14) @@ | ||
645 | * Gets the user provided comment |
|
646 | * @return string HTML |
|
647 | */ |
|
648 | public function getComment() { |
|
649 | if ( $this->canView( LogPage::DELETED_COMMENT ) ) { |
|
650 | $comment = Linker::commentBlock( $this->entry->getComment() ); |
|
651 | // No hard coded spaces thanx |
|
652 | $element = ltrim( $comment ); |
|
653 | if ( $this->entry->isDeleted( LogPage::DELETED_COMMENT ) ) { |
|
654 | $element = $this->styleRestricedElement( $element ); |
|
655 | } |
|
656 | } else { |
|
657 | $element = $this->getRestrictedElement( 'rev-deleted-comment' ); |
|
658 | } |
|
659 | ||
660 | return $element; |
|
661 | } |
|
662 | ||
663 | /** |
|
664 | * Helper method for displaying restricted element. |