From 2fff677ca94a92ad0a5f7d9bb262e38c2ce1ea8b Mon Sep 17 00:00:00 2001 From: Liangent Date: Thu, 10 Jan 2013 14:18:27 +0800 Subject: [PATCH] Disable template expansion in message . Sometimes sysops put template calls in block messages and they will be expanded in the interface. However in corresponding autoblocks, template calls get expanded to long strings and truncated. Change-Id: I3150192ec8c95d2e4807f058a855856e467145de --- includes/Block.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Block.php b/includes/Block.php index f3290b6160..b81cf3a32c 100644 --- a/includes/Block.php +++ b/includes/Block.php @@ -696,7 +696,7 @@ class Block { wfDebug( "Autoblocking {$this->getTarget()}@" . $autoblockIP . "\n" ); $autoblock->setTarget( $autoblockIP ); $autoblock->setBlocker( $this->getBlocker() ); - $autoblock->mReason = wfMessage( 'autoblocker', $this->getTarget(), $this->mReason )->inContentLanguage()->text(); + $autoblock->mReason = wfMessage( 'autoblocker', $this->getTarget(), $this->mReason )->inContentLanguage()->plain(); $timestamp = wfTimestampNow(); $autoblock->mTimestamp = $timestamp; $autoblock->mAuto = 1; -- 2.20.1