예제 #1
0
 /**
  * Gets the user provided comment
  * @return string HTML
  */
 public function getComment()
 {
     if ($this->canView(LogPage::DELETED_COMMENT)) {
         $comment = Linker::commentBlock($this->entry->getComment());
         // No hard coded spaces thanx
         $element = ltrim($comment);
         if ($this->entry->isDeleted(LogPage::DELETED_COMMENT)) {
             $element = $this->styleRestricedElement($element);
         }
     } else {
         $element = $this->getRestrictedElement('rev-deleted-comment');
     }
     return $element;
 }