Re: AppDB - set default comments mode to threaded for new users
Chris Morgan wrote:
Chris Morgan <cmorgan(a)alum.wpi.edu> include/user.php Set default comments mode to threaded for new users
Index: include/user.php =================================================================== RCS file: /opt/cvs-commit/appdb/include/user.php,v retrieving revision 1.46 diff -u -r1.46 user.php --- include/user.php 14 Aug 2005 18:49:21 -0000 1.46 +++ include/user.php 14 Aug 2005 19:32:59 -0000 @@ -88,7 +88,11 @@ $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; } }
Looks good to me... -- Tony Lambregts
participants (1)
-
Tony Lambregts