Implement wfArrayPlus2d which combines 2d arrays
authorFlorian <florian.schmidt.stargatewissen@gmail.com>
Thu, 27 Aug 2015 17:49:50 +0000 (19:49 +0200)
committerFlorian <florian.schmidt.stargatewissen@gmail.com>
Tue, 1 Sep 2015 18:53:54 +0000 (20:53 +0200)
commit20f2df9c9f317d4bea1a984fee44f99c515e5454
treed915fd9511f8013d792919eee7f6be131ba5bcb4
parentc99e752823d7b41b85155cc14e2ad2de34706427
Implement wfArrayPlus2d which combines 2d arrays

Moved the logic of ExtensionRegistrations array_plus_2d merge method out
to it's own global function wfArrayPlus2d, so any other function in mediawiki
core and it's extensions can use this method when they need to union
a 2d array.

Change-Id: I56afdf306e399a4a1505828ed76c60c1bfd033b6
includes/GlobalFunctions.php
includes/registration/ExtensionRegistry.php
tests/phpunit/includes/GlobalFunctions/wfArrayPlus2dTest.php [new file with mode: 0644]