Jump to content

Manual talk:$wgUser

Add topic
From mediawiki.org
Latest comment: 7 years ago by This, that and the other in topic In most cases $wgUser should not be used in new code.

In most cases $wgUser should not be used in new code.

[edit]

Please, tell me more. Why not? What to use instead? @This, that and the other TespSam (talk) 16:03, 15 March 2018 (UTC)Reply

Virtually all hooks now give you a User object as a parameter. If the hook you require does not have this parameter, and you think it should, then consider filing a Phabricator task. This, that and the other (talk) 00:43, 16 March 2018 (UTC)Reply