<Krinkle> siebrand: probably because you have legacy globals disabled and the code is using the global instead of mw.config
A quick search suggests 24 or so usages
IIRC, it's a case of swapping them for:
mw.config.get('wgFoobar')
Version: unspecified
Severity: normal