replace global MediaWiki variables with mw.config.get()

global config variables are deprecated since MW 1.17

idea from:
https://ru.wikipedia.org/w/index.php?diff=64787372