From: Brad Jorsch Date: Thu, 22 Jun 2017 17:00:16 +0000 (-0400) Subject: Fix error reporting in Special:Undelete X-Git-Tag: 1.31.0-rc.0~2782^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/bilan.php?a=commitdiff_plain;h=d621911b70bb9dea98d00b92a83d632d57b71764;p=lhc%2Fweb%2Fwiklou.git Fix error reporting in Special:Undelete Fixes breakage introduced in I65c24150. Change-Id: Ie519d31c84d45d067ef3a64151dcef51ae24e8e3 --- 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' + ) . '
' ); }