From: Platonides Date: Sat, 17 Apr 2010 21:06:21 +0000 (+0000) Subject: Add yet another parameter for Block construction, so this doesn't show runJobs.php... X-Git-Tag: 1.31.0-rc.0~37075 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=839001c7cc0ca819ed4e2e58971926187cc4a759;p=lhc%2Fweb%2Fwiklou.git Add yet another parameter for Block construction, so this doesn't show runJobs.php blocking anyone when run from the job queue :) Follow up r65184. --- diff --git a/includes/Block.php b/includes/Block.php index 7ec7b6f37d..f3e8d9ab5a 100644 --- a/includes/Block.php +++ b/includes/Block.php @@ -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(); }