Page MenuHomePhabricator

[Extension:HostStats] Remove the usage of global variable $wgUser, $wgOut
Closed, ResolvedPublic

Description

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() and remove unused $wgOut in SpecialHostStats.php.

Level

Easy

Reserved for Mini-MWT at VVIT (Feb 2019)

Event Timeline

Change 492439 had a related patch set uploaded (by SuswethaK; owner: SuswethaK):
[mediawiki/extensions/HostStats@master] Removed the usage of global variable $wgUser, $wgOut

https://gerrit.wikimedia.org/r/492439

Change 492439 merged by jenkins-bot:
[mediawiki/extensions/HostStats@master] Removed the usage of global variable $wgUser, $wgOut

https://gerrit.wikimedia.org/r/492439