Fix SpecialBlock validation for ipb_allow_usertalk
authorDayllan Maza <dmaza@wikimedia.org>
Tue, 30 Jul 2019 02:15:56 +0000 (22:15 -0400)
committerDayllan Maza <dmaza@wikimedia.org>
Tue, 30 Jul 2019 19:34:14 +0000 (15:34 -0400)
commitfd70b59dc5ae577a8bcc28f9c63cc2f3978248a5
tree64b77b77d8d7502b76ac83c8599c5e16b5ef6816
parent9aeea7989766f2fec8920510ea8815aa403f9edb
Fix SpecialBlock validation for ipb_allow_usertalk

ipb_allow_usertalk should be saved as false only when:
    A block is sitewide
    A block is partial and there is a restriction on the User_talk namespace

Bug: T224468
Change-Id: Ic85368991b5905af1bab99b0cb5fcba0e993405e
includes/specials/SpecialBlock.php
languages/i18n/en.json
languages/i18n/qqq.json
tests/phpunit/includes/api/ApiBlockTest.php
tests/phpunit/includes/specials/SpecialBlockTest.php