EllisLab/CodeIgniter — pull request #911 by narfbg (2012-01-10 14:19:04+00:00)
Title: Fixed a bug in CI_Lang::load()

The bug has been introduced at some point after the 2.1 release and only exists in the develop tree.

The old line seems valid at first, but it will only append elements with keys that don't already exist in `$this->language`.
Example:

php > $a1 = array('test');
php > $a2 = array('test2', 'test3');
php > $test = $a1 + $a2;
php > var_dump($test);
array(2) {
[0]=>
string(4) "test"
[1]=>
string(5) "test3"
}
php > var_dump(array_merge($a1, $a2));
array(3) {
[0]=>
string(4) "test"
[1]=>
string(5) "test2"
[2]=>
string(5) "test3"
}