}
);
$htmlForm->setMethod( 'get' );
-
- $out->addHTML( Xml::fieldset( $this->msg( 'newpages' )->text() ) );
-
+ $htmlForm->setWrapperLegend( true );
+ $htmlForm->setWrapperLegendMsg( 'newpages' );
+ $htmlForm->addFooterText( Html::rawElement(
+ 'div',
+ null,
+ $this->filterLinks()
+ ) );
$htmlForm->show();
-
- $out->addHTML(
- Html::rawElement(
- 'div',
- null,
- $this->filterLinks()
- ) .
- Xml::closeElement( 'fieldset' )
- );
}
/**
- * @param stdClass $row Result row from recent changes
+ * @param stdClass $result Result row from recent changes
* @return Revision|bool
*/
protected function revisionFromRcResult( stdClass $result ) {
return new Revision( [
- 'comment' => $result->rc_comment,
+ 'comment' => CommentStore::newKey( 'rc_comment' )->getComment( $result )->text,
'deleted' => $result->rc_deleted,
'user_text' => $result->rc_user_text,
'user' => $result->rc_user,