Since $wgUser is deprecated, what is the new method for getting the user class?
Topic on Project:Support desk
As far as I know, $wgUser is not deprecated. You can use variable by add "global $wgUser" to user code.
Notice this: "Manual:$wgUser - global user object (deprecated)"
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?