Bug: Append to wgAutoloadClasses
authorErik Bernhardson <ebernhardson@wikimedia.org>
Wed, 19 Nov 2014 06:23:31 +0000 (22:23 -0800)
committerEBernhardson <ebernhardson@wikimedia.org>
Wed, 19 Nov 2014 06:33:51 +0000 (06:33 +0000)
commit24a72730d6368b799cbc6eed10d3c8a257085805
tree603d742fb8670901827b4f47c85e70bfd51b7629
parent382ff9d77095bebc379da027aedf1aed465188ff
Bug: Append to wgAutoloadClasses

When generating $wgAutoloadClasses for an extension the generator
currently outputs an assignment (=), but it is unlikely this is
the desired result. An extension wants to append to the existing
$wgAutoloadClasses. This bug is an unintended consequence of I75403ace
which changed the generator from assigning one key per line to using
an array literal.

This patch changes the output only when generating $wgAutoloadClasses
to the += operator which adds to the array any value that is not
already in the array.

Change-Id: I7d42ee5dc829991c6562878f0c90a06fadb1b6a6
includes/utils/AutoloadGenerator.php