MMM
I found that I should do something like this
$wiki_dbr =& wfGetDB( DB_SLAVE );
$sql = "INSERT IGNORE INTO user_groups (ug_user, ug_group) VALUES ('" .
$user->getID() . "' , 'sysop')";
$wiki_dbr->query($sql, "Auth_tamtamy::updateUser");
The problem is that (obviously) I don't get the table prefix. Apart adding
it manually on the query, is there any better way of doing this task?
Thanks
On Fri, May 2, 2008 at 10:50 PM, DanTMan <dan_the_man(a)telus.net> wrote:
I believe that the 'clean' method was to use
initUser to bring in groups
that the person is initially in when they are first created, and also
use updateUser to update those groups when the person logs in. That was
the purpose of those two functions basically, to update local data of
various preferences and permissions when a user is created and logs in.