X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FProtectionForm.php;h=0d0654e8fa894544fd0c3805fc5cac1fd69d7040;hb=1ee582b2a867207a95e3e4d3ff11ea814e216cdd;hp=51c29233852f7ae97e181ffe4027d19ae67b27ec;hpb=77e3624caba072521fbc1826af2d47f9b29f4032;p=lhc%2Fweb%2Fwiklou.git
diff --git a/includes/ProtectionForm.php b/includes/ProtectionForm.php
index 51c2923385..0d0654e8fa 100644
--- a/includes/ProtectionForm.php
+++ b/includes/ProtectionForm.php
@@ -196,7 +196,7 @@ class ProtectionForm {
/**
* Show the input form with optional error message
*
- * @param string $err Error message or null if there's no error
+ * @param string|null $err Error message or null if there's no error
*/
function show( $err = null ) {
$out = $this->mContext->getOutput();
@@ -204,9 +204,9 @@ class ProtectionForm {
$out->addBacklinkSubtitle( $this->mTitle );
if ( is_array( $err ) ) {
- $out->wrapWikiMsg( "
\n$1\n
\n", $err );
+ $out->wrapWikiMsg( "\n$1\n
\n", $err );
} elseif ( is_string( $err ) ) {
- $out->addHTML( "{$err}
\n" );
+ $out->addHTML( "{$err}
\n" );
}
if ( $this->mTitle->getRestrictionTypes() === [] ) {
@@ -216,7 +216,9 @@ class ProtectionForm {
'protect-norestrictiontypes-title',
$this->mTitle->getPrefixedText()
) );
- $out->addWikiText( $this->mContext->msg( 'protect-norestrictiontypes-text' )->plain() );
+ $out->addWikiTextAsInterface(
+ $this->mContext->msg( 'protect-norestrictiontypes-text' )->plain()
+ );
// Show the log in case protection was possible once
$this->showLogExtract( $out );
@@ -246,7 +248,9 @@ class ProtectionForm {
$this->mContext->msg( 'protect-title-notallowed',
$this->mTitle->getPrefixedText() )
);
- $out->addWikiText( $out->formatPermissionsErrorMessage( $this->mPermErrors, 'protect' ) );
+ $out->addWikiTextAsInterface( $out->formatPermissionsErrorMessage(
+ $this->mPermErrors, 'protect'
+ ) );
} else {
$out->setPageTitle( $this->mContext->msg( 'protect-title', $this->mTitle->getPrefixedText() ) );
$out->addWikiMsg( 'protect-text',