From c3cb10b55c832b9dc2d6805d10966549213c46b7 Mon Sep 17 00:00:00 2001 From: Daimona Eaytoy Date: Sun, 20 Oct 2019 10:45:27 +0200 Subject: [PATCH 1/1] Fix docs for GetUserBlock hooks Change-Id: I93b64fb00477c0632a6fa3573800dd7609d25db0 --- docs/hooks.txt | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.20.1