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