Update wfArrayToCGI and wfCgiToArray:
authorDaniel Friesen <dantman@users.mediawiki.org>
Sun, 11 Dec 2011 18:25:23 +0000 (18:25 +0000)
committerDaniel Friesen <dantman@users.mediawiki.org>
Sun, 11 Dec 2011 18:25:23 +0000 (18:25 +0000)
commit57c8fe18c79e82c955b6582d3eee22ebd4ec952b
tree062eb75f6c13d3ba65bbb3c5f2c6d641b6825cf6
parente159355c7f8ea91859c16c41cd7814fa32c3746f
Update wfArrayToCGI and wfCgiToArray:
- 'foo' => '' now outputs "&foo=" instead of the key being omitted
- 'foo' => null and 'foo' => false now omit the key instead of outputting "&foo="
- Added a test to make sure that 'foo' => true outputs "&foo=1"
- Fixed a php notice caused when passing a =value-less bit like "&qwerty" to wfCgiToArray by treating it like php and extracting it as 'qwerty' => ''
- Updated tests
includes/GlobalFunctions.php
tests/phpunit/includes/GlobalFunctions/GlobalTest.php