Pwirth has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/379493 )
Change subject: Fixed specialpage messages not getting rendered correctly ...................................................................... Fixed specialpage messages not getting rendered correctly => Needs cherry-picks to REL1_30, REL1_29, REL1_28, REL1_27 Change-Id: Icc8a7db7c3ed2106dd6bf0abba03f8300db9c555 --- M Duplicator.page.php 1 file changed, 11 insertions(+), 11 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Duplicator refs/changes/93/379493/1 diff --git a/Duplicator.page.php b/Duplicator.page.php index d41bce0..0f4d3ee 100644 --- a/Duplicator.page.php +++ b/Duplicator.page.php @@ -116,13 +116,13 @@ $num = $this->duplicate( $this->sourceTitle, $this->destTitle, $this->history ); if( $num ) { $success = Html::openElement( 'ul' ) . - Html::element( 'li', + Html::rawElement( 'li', array(), $this->msg( 'duplicator-success', $this->sourceTitle->getPrefixedText(), $this->destTitle->getPrefixedText() - )->plain() . ' ' . - $this->msg( 'duplicator-success-revisions' )->numParams( $num )->plain() + )->parse() . ' ' . + $this->msg( 'duplicator-success-revisions' )->numParams( $num )->text() ); # If there are subpages and we've been asked to duplicate them, do so @@ -135,20 +135,20 @@ $dt = $this->destTitle->getTalkPage(); $num = $this->duplicate( $st, $dt, $this->history ); if ( $num ) { - $success .= Html::element( 'li', + $success .= Html::rawElement( 'li', array(), $this->msg( 'duplicator-success', $st->getPrefixedText(), $dt->getPrefixedText() - )->plain() . ' ' . - $this->msg( 'duplicator-success-revisions' )->numParams( $num )->plain() + )->parse() . ' ' . + $this->msg( 'duplicator-success-revisions' )->numParams( $num )->text() ); if ( $this->subpages ) { $success .= $this->duplicateSubpages( $st, $dt, $this->history ); } } else { - $success .= Html::element( 'li', array(), $this->msg( 'duplicator-success-talknotcopied' )->plain() ); + $success .= Html::rawElement( 'li', array(), $this->msg( 'duplicator-success-talknotcopied' )->text() ); } } @@ -260,7 +260,7 @@ $this->msg( 'duplicator-failed-dest-exists', $sub->getPrefixedText(), $destSub->getPrefixedText() - )->plain() + )->text() ); } else { $num = $this->duplicate( $sub, $destSub, $this->history ); @@ -269,15 +269,15 @@ $this->msg( 'duplicator-success', $sub->getPrefixedText(), $destSub->getPrefixedText() - )->plain() . ' ' . + )->text() . ' ' . $this->msg( 'duplicator-success-revisions', $wgLang->formatNum( $num ) - )->plain() + )->text() ); } } else { # Bad title error can only occur here because of the destination title being too long - $success .= Html::element( 'li', array(), $this->msg( 'duplicator-failed-toolong', $sub->getPrefixedText() )->plain() ); + $success .= Html::element( 'li', array(), $this->msg( 'duplicator-failed-toolong', $sub->getPrefixedText() )->text() ); } } return $success; -- To view, visit https://gerrit.wikimedia.org/r/379493 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Icc8a7db7c3ed2106dd6bf0abba03f8300db9c555 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/Duplicator Gerrit-Branch: master Gerrit-Owner: Pwirth <wi...@hallowelt.biz> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits