Make constructor of Block accept array of options
authorMatěj Grabovský <mgrabovsky@yahoo.com>
Thu, 22 May 2014 14:45:46 +0000 (16:45 +0200)
committerBrad Jorsch <bjorsch@wikimedia.org>
Fri, 19 Jun 2015 18:20:01 +0000 (14:20 -0400)
commit5a9d3916016c75d810791a36e00549c1213e8498
tree975732a60d585aa7d4c2a399e62c7211d16bbc0b
parent5df96c7ff289a1bb0068b114900659348625d672
Make constructor of Block accept array of options

Block::__construct now accepts an array of options instead of a myriad
of optional parameters.

Also add a test for the old constructor.

Change-Id: I6ccd4df569ab49ad841a1ad591e23cafb1715841
RELEASE-NOTES-1.26
includes/Block.php
tests/phpunit/includes/BlockTest.php
tests/phpunit/includes/TitlePermissionTest.php