X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;ds=sidebyside;f=includes%2Fspecials%2FSpecialNewpages.php;h=671ab6fb55b3af324e3e40b4336de5d5eb57a1a8;hb=17e88d99eb768e4181207bbd35656d239ef5d4e8;hp=ede48983218362e1932af0889a51c5403cfe96d9;hpb=a8ec960e9d910acbcd0d50efad3bd73e3ae812aa;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialNewpages.php b/includes/specials/SpecialNewpages.php index ede4898321..671ab6fb55 100644 --- a/includes/specials/SpecialNewpages.php +++ b/includes/specials/SpecialNewpages.php @@ -278,28 +278,23 @@ class SpecialNewpages extends IncludableSpecialPage { } ); $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,