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

Restricted Application added a project: User-Jayprakash12345. · View Herald TranscriptFeb 18 2019, 10:55 AM

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

Jayprakash12345 closed this task as Resolved.Feb 24 2019, 2:01 PM
Jayprakash12345 removed a project: Patch-For-Review.