Problem
Now we are replacing the global variable by getting the context. The Classes which extends SpecialPage can directly access the context by $this.
Solution
Replace
- $wgUser with $this->getUser()
- $wgOut with $this->getOutput()
- $wgLang with $this->getLanguage()
in ImportUsers_body.php. If there are multiple usages then use a variable to store context instead of calling $this again and again.
Level
Easy
Reserved for Mini-MWT at VVIT (Feb 2019)