abstract public function canViewContent();
/**
- * Get the HTML of the list item. Should be include <li></li> tags.
+ * Get the HTML of the list item. Should be include "<li></li>" tags.
* This is used to show the list in HTML form, by the special page.
*/
abstract public function getHTML();
*/
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(),
}
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 );