found out where $wgServer ended up being used, fixed it with solution provided by Daniel Friesen; thanks Wikitech-l