From 61726a9959bfb80d82b0f84ee8c1352ee21218dc Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Tue, 2 Nov 2021 13:22:05 +1100 Subject: [PATCH] Fix oldimage deletion error message filedeleteerror-short was repeated as an h2, but the parameters aren't appropriate for prepareMessage() and filedeleteerror-short-old doesn't exist. The message is used correctly in the following line. Change-Id: I07481bd7d43e0596af3de183aa7814572805c8c2 --- includes/actions/FileDeleteAction.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/includes/actions/FileDeleteAction.php b/includes/actions/FileDeleteAction.php index e92518a90fe..1e20cb75fd2 100644 --- a/includes/actions/FileDeleteAction.php +++ b/includes/actions/FileDeleteAction.php @@ -134,9 +134,6 @@ class FileDeleteAction extends DeleteAction { ); if ( !$status->isGood() ) { - $outputPage->addHTML( - '

' . $this->prepareMessage( 'filedeleteerror-short' ) . "

\n" - ); $outputPage->wrapWikiTextAsInterface( 'error', $status->getWikiText( 'filedeleteerror-short', 'filedeleteerror-long' )