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()
- $wgRequest with $this->getRequest()
- $wgOut with $this->getOutput()
in SpecialPatroller.php. If there are multiple usage then use variable to store context instead of calling $this again and again.
Level:- Easy
Reserved for Mini-MWT at VVIT (Feb 2019)