79 $date = htmlspecialchars( $this->list->getLanguage()->userTimeAndDate(
80 $this->row->log_timestamp, $this->list->getUser() ) );
81 $title = Title::makeTitle( $this->row->log_namespace, $this->row->log_title );
82 $services = MediaWikiServices::getInstance();
83 $formatter = $services->getLogFormatterFactory()->newFromRow( $this->row );
84 $formatter->setContext( $this->list->getContext() );
85 $formatter->setAudience( LogFormatter::FOR_THIS_USER );
88 $loglink = $services->getLinkRenderer()->makeLink(
89 SpecialPage::getTitleFor(
'Log' ),
90 $this->list->msg(
'log' )->text(),
92 [
'page' => $title->getPrefixedText() ]
94 $loglink = $this->list->msg(
'parentheses' )->rawParams( $loglink )->escaped();
96 $action = $formatter->getActionText();
98 $dir = $this->list->getLanguage()->getDir();
99 $comment = Html::rawElement(
'bdi', [
'dir' => $dir ], $formatter->getComment() );
101 $content =
"$loglink $date $action $comment";
108 $this->list->getContext()
110 $content .=
" $tagSummary";
111 $attribs[
'class'] = implode(
' ', $classes );
113 return Html::rawElement(
'li', $attribs, $content );