From d1c7de3ffd6b517ab588b07b9a89bb9b6cff8a4b Mon Sep 17 00:00:00 2001 From: divadsn Date: Fri, 23 Dec 2016 20:14:05 +0000 Subject: [PATCH] Add id attribute to error message "mw-error-cannotundelete" Bug: T20819 Change-Id: I65c241506d53ced2e714f3f6d431c2005263a1c0 --- includes/specials/SpecialUndelete.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/includes/specials/SpecialUndelete.php b/includes/specials/SpecialUndelete.php index 04f5be46ca..3d5184208b 100644 --- a/includes/specials/SpecialUndelete.php +++ b/includes/specials/SpecialUndelete.php @@ -1806,11 +1806,9 @@ class SpecialUndelete extends SpecialPage { // Show revision undeletion warnings and errors $status = $archive->getRevisionStatus(); if ( $status && !$status->isGood() ) { - $out->addWikiText( '
' . - $status->getWikiText( - 'cannotundelete', - 'cannotundelete' - ) . '
' + $out->wrapWikiMsg( + "
\n$1\n
", + 'cannotundelete' ); } -- 2.20.1