Set defaults comments mode to threaded for new users

This commit is contained in:
Chris Morgan
2005-08-15 00:17:54 +00:00
committed by WineHQ
parent 009cc6a55f
commit c8b4caf151

View File

@@ -88,7 +88,11 @@ class User {
$sValues = "({$aInsert['VALUES']}, password('".$sPassword."'), NOW(), NOW() )";
query_appdb("INSERT INTO user_list $sFields VALUES $sValues", "Error while creating a new user.");
return $this->login($sEmail, $sPassword);
$retval = $this->login($sEmail, $sPassword);
$this->setPref("comments:mode", "threaded"); /* set the users default comments:mode to threaded */
return $retval;
}
}