[Mediawiki-l] $user->isLoggedIn()

Thomas Dalton thomas.dalton at gmail.com
Sat Sep 1 13:40:50 UTC 2007


> User::isLoggedIn() was meant to be used with $wgUser, as in. You're
> logged in if "$wgUser->isLoggedIn();" returns true. It's not meant to
> detect if an other user is logged in, because that's a technical
> impossibility.

It's a bad name, really. It should be something is isNotAnon(), since
that's what it actually does.



More information about the MediaWiki-l mailing list