fixed an issue with a global variable mispelling identified by MediaWiki 1.24.0