/** * Wrap and format the file's comment block, if the current * user is allowed to view it. * * @return string HTML */ protected function getComment() { if ($this->file->userCan(File::DELETED_COMMENT, $this->list->getUser())) { $block = Linker::commentBlock($this->file->getDescription()); } else { $block = ' ' . $this->list->msg('rev-deleted-comment')->escaped(); } if ($this->file->isDeleted(File::DELETED_COMMENT)) { return "<span class=\"history-deleted\">{$block}</span>"; } return $block; }