Add yet another parameter for Block construction, so this doesn't show runJobs.php...
authorPlatonides <platonides@users.mediawiki.org>
Sat, 17 Apr 2010 21:06:21 +0000 (21:06 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Sat, 17 Apr 2010 21:06:21 +0000 (21:06 +0000)
Follow up r65184.

includes/Block.php

index 7ec7b6f..f3e8d9a 100644 (file)
@@ -25,7 +25,7 @@ class Block {
 
        function __construct( $address = '', $user = 0, $by = 0, $reason = '',
                $timestamp = '' , $auto = 0, $expiry = '', $anonOnly = 0, $createAccount = 0, $enableAutoblock = 0,
-               $hideName = 0, $blockEmail = 0, $allowUsertalk = 0 )
+               $hideName = 0, $blockEmail = 0, $allowUsertalk = 0, $byName = false )
        {
                $this->mId = 0;
                # Expand valid IPv6 addresses
@@ -45,7 +45,7 @@ class Block {
                $this->mAllowUsertalk = $allowUsertalk;
                $this->mForUpdate = false;
                $this->mFromMaster = false;
-               $this->mByName = false;
+               $this->mByName = $byName;
                $this->mAngryAutoblock = false;
                $this->initialiseRange();
        }