HomePhabricator

Fix EventLogging schema dependencies

Authored by Krenair.

Description

Fix EventLogging schema dependencies

Fixes Iba22cb40

The first two entries in the getEventLoggingSchemas() returned array would
be ignored, because of how PHP array addition works:

var_dump( array(
'mobile.startup',
'mobile.settings'
) + array(
'MobileWebBrowse',
'MobileWebDiffClickTracking',
'MobileWebMainMenuClickTracking'
) );

Result:
array(3) {

[0]=>
string(14) "mobile.startup"
[1]=>
string(15) "mobile.settings"
[2]=>
string(30) "MobileWebMainMenuClickTracking"

}

Isn't PHP great?

Bug: T110272
Change-Id: I623f6182c2012fa5a16b1e18b9083517ba50ebae
(cherry picked from commit 17238d9ece590e59d1513a1d2ba362750cee24a8)

Details

Committed
Jdforrester-WMFSep 7 2015, 3:30 PM
Parents
rEMFRfd8a6e773ace: Creating new wmf/1.26wmf21 branch
Branches
Unknown
Tags
Unknown
References
refs/changes/58/236558/2
ChangeId
I623f6182c2012fa5a16b1e18b9083517ba50ebae