X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2FProtectionForm.php;h=a1be27184838b6802c9ffe6fcaeec924b6d6e7ee;hp=8b5d9956abd444bd7b0619c54247d3f17b9fcd0f;hb=d2f799f103d0b576e2e5b1764df449ec3016d3c4;hpb=2502c25f8ad9d8a08f9601cc448c2c76ee32222b diff --git a/includes/ProtectionForm.php b/includes/ProtectionForm.php index 8b5d9956ab..a1be271848 100644 --- a/includes/ProtectionForm.php +++ b/includes/ProtectionForm.php @@ -58,6 +58,18 @@ class ProtectionForm { /** @var array Map of action to the expiry time of the existing protection */ protected $mExistingExpiry = []; + /** @var Article */ + protected $mArticle; + + /** @var Title */ + protected $mTitle; + + /** @var bool */ + protected $disabled; + + /** @var array */ + protected $disabledAttrib; + /** @var IContextSource */ private $mContext; @@ -78,7 +90,7 @@ class ProtectionForm { if ( wfReadOnly() ) { $this->mPermErrors[] = [ 'readonlytext', wfReadOnlyReason() ]; } - $this->disabled = $this->mPermErrors != []; + $this->disabled = $this->mPermErrors !== []; $this->disabledAttrib = $this->disabled ? [ 'disabled' => 'disabled' ] : [];