From c8b4caf151349da0c60e657923dcc27cb176ad72 Mon Sep 17 00:00:00 2001 From: Chris Morgan Date: Mon, 15 Aug 2005 00:17:54 +0000 Subject: [PATCH] Set defaults comments mode to threaded for new users --- include/user.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/user.php b/include/user.php index 6a73a50..50a8747 100644 --- a/include/user.php +++ b/include/user.php @@ -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; } }