From d621911b70bb9dea98d00b92a83d632d57b71764 Mon Sep 17 00:00:00 2001 From: Brad Jorsch Date: Thu, 22 Jun 2017 13:00:16 -0400 Subject: [PATCH] Fix error reporting in Special:Undelete Fixes breakage introduced in I65c24150. Change-Id: Ie519d31c84d45d067ef3a64151dcef51ae24e8e3 --- includes/specials/SpecialUndelete.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/includes/specials/SpecialUndelete.php b/includes/specials/SpecialUndelete.php index fa385060e8..1a2153d751 100644 --- a/includes/specials/SpecialUndelete.php +++ b/includes/specials/SpecialUndelete.php @@ -1099,9 +1099,11 @@ class SpecialUndelete extends SpecialPage { // Show revision undeletion warnings and errors $status = $archive->getRevisionStatus(); if ( $status && !$status->isGood() ) { - $out->wrapWikiMsg( - "
\n$1\n
", - 'cannotundelete' + $out->addWikiText( '
' . + $status->getWikiText( + 'cannotundelete', + 'cannotundelete' + ) . '
' ); } -- 2.20.1