From: LukBukkit Date: Mon, 12 Nov 2018 13:16:32 +0000 (+0100) Subject: Wrap the text for out-of-date edits into a warningbox X-Git-Tag: 1.34.0-rc.0~3510^2 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=d99700ca821d47f5f639c1679d1fe80eb8694d10;p=lhc%2Fweb%2Fwiklou.git Wrap the text for out-of-date edits into a warningbox I'm using the Html util class, because of T166915 Bug: T202248 Change-Id: I073cb5a214da939986a8d7a2a244a04e4dfad1e3 --- diff --git a/includes/EditPage.php b/includes/EditPage.php index 0f7d9a7a39..373f6d9bf6 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -3123,7 +3123,10 @@ ERROR; if ( !$revision->isCurrent() ) { $this->mArticle->setOldSubtitle( $revision->getId() ); - $out->addWikiMsg( 'editingold' ); + $out->wrapWikiMsg( + Html::warningBox( "\n$1\n" ), + 'editingold' + ); $this->isOldRev = true; } } elseif ( $this->mTitle->exists() ) {