Topic on Project:Support desk

Developaws (talkcontribs)

Since $wgUser is deprecated, what is the new method for getting the user class?

*devunt (talkcontribs)

As far as I know, $wgUser is not deprecated. You can use variable by add "global $wgUser" to user code.

Developaws (talkcontribs)
This, that and the other (talkcontribs)

It depends on where in the code you want to access this information. On a special page, for instance, one can use $this->getUser().

What exactly are you trying to do?

Reply to "$wgUser deprecated"