* Rewrote wfArrayMerge() in terms of array plus
authorTim Starling <tstarling@users.mediawiki.org>
Sat, 1 Nov 2008 23:20:25 +0000 (23:20 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Sat, 1 Nov 2008 23:20:25 +0000 (23:20 +0000)
commit2b4c3cd6541587061355f67b94d0f2297d6b555f
tree7b869b6c1cc1e935d7e79d679fee5ee0d0c703fb
parent4fd26b6b8a0179bce93168d519041428532314a6
* Rewrote wfArrayMerge() in terms of array plus
* Two callers of wfArrayMerge() were bugs, both assuming strange and complex behaviour in wfArrayMerge() which has never been present or documented.
* Introduced wfMergeErrorArrays() to remove duplicates from merged error arrays, e.g. from getUserPermissionsErrors().
* Rewrote the remaining callers of wfArrayMerge() to use array plus. It makes the code clearer, assuming the reader knows more about basic PHP operators than GlobalFunctions.php. Considering the two bugs discussed above, this seems like a fair assumption. If you don't know PHP, you shouldn't be writing MediaWiki code.
includes/GlobalFunctions.php
includes/OutputPage.php
includes/Title.php
includes/WebRequest.php
includes/specials/SpecialIpblocklist.php
includes/specials/SpecialRecentchanges.php
languages/Language.php