From: Daimona Eaytoy Date: Sun, 20 Oct 2019 08:45:27 +0000 (+0200) Subject: Fix docs for GetUserBlock hooks X-Git-Tag: 1.34.0-rc.1~19 X-Git-Url: http://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=commitdiff_plain;h=c3cb10b55c832b9dc2d6805d10966549213c46b7 Fix docs for GetUserBlock hooks Change-Id: I93b64fb00477c0632a6fa3573800dd7609d25db0 --- diff --git a/docs/hooks.txt b/docs/hooks.txt index 4261b0b0ef..a6d6c6c08e 100644 --- a/docs/hooks.txt +++ b/docs/hooks.txt @@ -1730,6 +1730,9 @@ $context: IContextSource 'GetUserBlock': Modify the block found by the block manager. This may be a single block or a composite block made from multiple blocks; the original blocks can be seen using CompositeBlock::getOriginalBlocks() +$user: User targeted by the block +$ip: string|null The IP of the current request if $user is the current user + and they're not exempted from IP blocks. Null otherwise. &$block: AbstractBlock object 'getUserPermissionsErrors': Add a permissions error when permissions errors are