Report more information about composite blocks in block error messages
authorThalia <thalia.e.chan@googlemail.com>
Wed, 3 Jul 2019 15:40:44 +0000 (16:40 +0100)
committerThalia <thalia.e.chan@googlemail.com>
Wed, 17 Jul 2019 15:15:30 +0000 (16:15 +0100)
commit0bb2e95974ace91bafa6c575704ffba0d528b65f
tree358cf7425b76244c49d1694c8eba2a6dbe8d1047
parent743007a4d8245f45b11033386707ab118a4f460b
Report more information about composite blocks in block error messages

For any messages that use CompositeBlock::getPermissionsError, include
details of the original blocks from which the composite block is made.

If there are any database blocks, give their IDs and also explain that
there may also be blocks due to IP blacklisting.

If there are no database blocks, then explain that the IP must be
blacklisted in multiple places.

Bug: T212326
Change-Id: Id6ad0019f8add4d5e000da5e872338e87cca485e
includes/block/CompositeBlock.php
includes/block/SystemBlock.php
languages/i18n/en.json
languages/i18n/qqq.json
tests/phpunit/includes/block/CompositeBlockTest.php