Check for global blocks
authorMatthias Mullie <git@mullie.eu>
Wed, 13 Apr 2016 14:24:30 +0000 (16:24 +0200)
committerMatthias Mullie <git@mullie.eu>
Fri, 15 Apr 2016 15:20:01 +0000 (17:20 +0200)
commit8fdbd3a179386a4198a7519bbb365fe8cb83b21a
treedd4cf0a53f5b7f9143431a950303cd315b51b5cf
parent8cb8af442a84ad73bd0d07e661056ef7c7a5ab3f
Check for global blocks

Depends on GlobalBlocking change I2893b9e24173d21fe518c360f6c6add363cc7b23,
where the Block object is added to the hook.

Before this, it's only possible to check for globalblock status. It is not
possible to print a proper error message without relying on the extension
and manually calling its GlobalBlocking::getUserBlockErrors to fetch the
actual error message.

Bug: T111229
Depends-On: I2893b9e24173d21fe518c360f6c6add363cc7b23
Change-Id: I23d29c1a0e016de4e82d5b51afa94ae9afd70ee4
includes/specials/SpecialUpload.php
includes/user/User.php