From a652bb330a2d13fc55e4fb2c8bdccd07e3e478dd Mon Sep 17 00:00:00 2001 From: Thalia Date: Tue, 22 Oct 2019 16:51:10 +0100 Subject: [PATCH] Pass the target as a string to the reason Message for autoblocks Bug: T227007 Change-Id: Id56c7f41d96e378ff43d152ff7325de49be66df9 --- includes/block/DatabaseBlock.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/block/DatabaseBlock.php b/includes/block/DatabaseBlock.php index c73ce9cc1e3..c560866412b 100644 --- a/includes/block/DatabaseBlock.php +++ b/includes/block/DatabaseBlock.php @@ -847,7 +847,7 @@ class DatabaseBlock extends AbstractBlock { $autoblock->setTarget( $autoblockIP ); $autoblock->setBlocker( $this->getBlocker() ); $autoblock->setReason( - wfMessage( 'autoblocker', $this->getTarget(), $this->getReasonComment()->text ) + wfMessage( 'autoblocker', (string)$this->getTarget(), $this->getReasonComment()->text ) ); $timestamp = wfTimestampNow(); $autoblock->setTimestamp( $timestamp );