X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FRevisionList.php;h=3c5cfa8ea28b81b7a130f5994e6140c8bb6067cc;hb=81ea9d1492c296902e9325f3b571cc4e5b39a272;hp=44c7912363d93d51786319c79884f628af20671e;hpb=41fd47ed1e31e9c881ffde4cc9d29a83b70a8ee9;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/RevisionList.php b/includes/RevisionList.php index 44c7912363..3c5cfa8ea2 100644 --- a/includes/RevisionList.php +++ b/includes/RevisionList.php @@ -245,7 +245,7 @@ abstract class RevisionItemBase { abstract public function canViewContent(); /** - * Get the HTML of the list item. Should be include
  • tags. + * Get the HTML of the list item. Should be include "
  • " tags. * This is used to show the list in HTML form, by the special page. */ abstract public function getHTML(); @@ -350,12 +350,12 @@ class RevisionItem extends RevisionItemBase { */ protected function getDiffLink() { if ( $this->isDeleted() && !$this->canViewContent() ) { - return wfMsgHtml('diff'); + return $this->context->msg( 'diff' )->escaped(); } else { return Linker::link( $this->list->title, - wfMsgHtml('diff'), + $this->context->msg( 'diff' )->escaped(), array(), array( 'diff' => $this->revision->getId(), @@ -371,7 +371,8 @@ class RevisionItem extends RevisionItemBase { } public function getHTML() { - $difflink = wfMessage( 'parentheses' )->rawParams( $this->getDiffLink() ); + $difflink = $this->context->msg( 'parentheses' ) + ->rawParams( $this->getDiffLink() )->escaped(); $revlink = $this->getRevisionLink(); $userlink = Linker::revUserLink( $this->revision ); $comment = Linker::revComment( $this->revision );