Don't be lazy: Initialise autoblock objects with both the blocker ID and their name
authorAndrew Garrett <werdna@users.mediawiki.org>
Fri, 27 Jun 2008 09:22:12 +0000 (09:22 +0000)
committerAndrew Garrett <werdna@users.mediawiki.org>
Fri, 27 Jun 2008 09:22:12 +0000 (09:22 +0000)
includes/Block.php

index b400912..b208fa8 100644 (file)
@@ -532,6 +532,7 @@ class Block
                $ipblock->mAddress = $autoblockip;
                $ipblock->mUser = 0;
                $ipblock->mBy = $this->mBy;
+               $ipblock->mByName = $this->mByName;
                $ipblock->mReason = wfMsgForContent( 'autoblocker', $this->mAddress, $this->mReason );
                $ipblock->mTimestamp = wfTimestampNow();
                $ipblock->mAuto = 1;