registration: Don't override boolean false settings
authorKunal Mehta <legoktm@gmail.com>
Wed, 3 Jun 2015 15:03:20 +0000 (08:03 -0700)
committerKunal Mehta <legoktm@gmail.com>
Wed, 3 Jun 2015 15:03:20 +0000 (08:03 -0700)
commitce5a0c5cd2ed4ef80b3bbbf3e91dcfe45ee7955c
tree703f95388139beb99e88a285fe524031cef9c7b9
parent34ebdaff863ff5da203fb450a9366ae2ed83f163
registration: Don't override boolean false settings

Our optimization of !$GLOBALS[$key] was affecting settings where a true
setting was being disabled in LocalSettings.php. Now explicitly check it
is an array before overriding it.

Bug: T100767
Change-Id: Id5397e526d66559bfabe6065223b1181a8a9d31e
includes/registration/ExtensionRegistry.php
tests/phpunit/includes/registration/ExtensionRegistryTest.php