Prevent fatal PHP errors when PageRestriction::getTitle() returns null.
authorDavid Barratt <dbarratt@wikimedia.org>
Wed, 30 Jan 2019 23:45:36 +0000 (15:45 -0800)
committerDavid Barratt <dbarratt@wikimedia.org>
Thu, 7 Feb 2019 15:06:15 +0000 (10:06 -0500)
commit6710e8c212ffba168d2ba32367863b8bf4b46e30
tree0edbcb79403dea6231b7772bff8af02c17406bca
parentab50a9fbf66b3ff4dbf2895a065921e124a9b322
Prevent fatal PHP errors when PageRestriction::getTitle() returns null.

Update usages of PageRestriction::getTitle() to handle a null response.

Bug: T214763
Change-Id: Ied33e2c3c9442c47ae8084a97bb0921869fb9d49
includes/api/ApiQueryBlocks.php
includes/block/Restriction/PageRestriction.php
includes/specials/SpecialBlock.php
includes/specials/pagers/BlockListPager.php
tests/phpunit/includes/api/ApiQueryBlocksTest.php
tests/phpunit/includes/block/Restriction/PageRestrictionTest.php
tests/phpunit/includes/specials/SpecialBlockTest.php
tests/phpunit/includes/specials/pagers/BlockListPagerTest.php