https://bugzilla.wikimedia.org/show_bug.cgi?id=17077





--- Comment #5 from Sam Sexton <[email protected]>  2009-01-20 15:39:39 
UTC ---
I've now added some additional code to my hook, to show the real name and
groups after loading the user from the database. I really a PHP novice, so it's
possible I'm not doing this properly, but the relevant code is:

  // Load the existing or newly-created user from the database ...

  if ( !$user->loadFromDatabase() ) {
    logTGST("loadFromDatabase failed for user ID $user->mId");
  } else { // Additional debugging ...
    logTGST("loadFromDatabase succeeded for user ID $user->mId");
    logTGST("  real name: $user->mRealName");
    logTGST("  groups: $user->mGroups");
  }
  return $user

and the logged output is:

2009-01-20 15:33:37 loadFromDatabase succeeded for user ID 1004
2009-01-20 15:33:37   real name: Sam Sexton
2009-01-20 15:33:37   groups: 

So it would _appear_ that either I'm interpreting what getGroups() does
incorrectly, or the group membership is not being recognised correctly. Any
suggestions?!


-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to