Don't expand template for reason on saving an autoblock
Bug: T236501 Change-Id: Ibca6443eeaabf9e60d45989de803aacebc952d5e
This commit is contained in:
parent
998a1c66d8
commit
6a8920d30d
2 changed files with 7 additions and 2 deletions
|
|
@ -847,7 +847,11 @@ class DatabaseBlock extends AbstractBlock {
|
|||
$autoblock->setTarget( $autoblockIP );
|
||||
$autoblock->setBlocker( $this->getBlocker() );
|
||||
$autoblock->setReason(
|
||||
wfMessage( 'autoblocker', (string)$this->getTarget(), $this->getReasonComment()->text )
|
||||
wfMessage(
|
||||
'autoblocker',
|
||||
(string)$this->getTarget(),
|
||||
$this->getReasonComment()->message->plain()
|
||||
)
|
||||
);
|
||||
$timestamp = wfTimestampNow();
|
||||
$autoblock->setTimestamp( $timestamp );
|
||||
|
|
|
|||
|
|
@ -200,7 +200,8 @@ class BlockListPager extends TablePager {
|
|||
break;
|
||||
|
||||
case 'ipb_reason':
|
||||
$value = CommentStore::getStore()->getComment( 'ipb_reason', $row )->text;
|
||||
$value = CommentStore::getStore()->getComment( 'ipb_reason', $row )
|
||||
->message->plain();
|
||||
$formatted = Linker::formatComment( $value );
|
||||
break;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue