X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fuser%2FUser.php;h=7189bea120512c4713934bda53de80e910154123;hb=b16590861656557f6a9b43e570b228192ca4a61b;hp=e235c18928d7aee44f9d88d678db3c806d1ad130;hpb=b79829875b7c4f198c29724f5b279924e351d382;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/user/User.php b/includes/user/User.php index e235c18928..7189bea120 100644 --- a/includes/user/User.php +++ b/includes/user/User.php @@ -1813,14 +1813,14 @@ class User implements IDBAccessObject, UserIdentity { if ( self::isLocallyBlockedProxy( $ip ) ) { $block = new Block( [ 'byText' => wfMessage( 'proxyblocker' )->text(), - 'reason' => wfMessage( 'proxyblockreason' )->text(), + 'reason' => wfMessage( 'proxyblockreason' )->plain(), 'address' => $ip, 'systemBlock' => 'proxy', ] ); } elseif ( $this->isAnon() && $this->isDnsBlacklisted( $ip ) ) { $block = new Block( [ 'byText' => wfMessage( 'sorbs' )->text(), - 'reason' => wfMessage( 'sorbsreason' )->text(), + 'reason' => wfMessage( 'sorbsreason' )->plain(), 'address' => $ip, 'systemBlock' => 'dnsbl', ] ); @@ -1841,7 +1841,7 @@ class User implements IDBAccessObject, UserIdentity { if ( $block instanceof Block ) { # Mangle the reason to alert the user that the block # originated from matching the X-Forwarded-For header. - $block->mReason = wfMessage( 'xffblockreason', $block->mReason )->text(); + $block->mReason = wfMessage( 'xffblockreason', $block->mReason )->plain(); } } @@ -1853,7 +1853,7 @@ class User implements IDBAccessObject, UserIdentity { $block = new Block( [ 'address' => $ip, 'byText' => 'MediaWiki default', - 'reason' => wfMessage( 'softblockrangesreason', $ip )->text(), + 'reason' => wfMessage( 'softblockrangesreason', $ip )->plain(), 'anonOnly' => true, 'systemBlock' => 'wgSoftBlockRanges', ] );