summaryrefslogtreecommitdiff
path: root/modules/user.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-08-22 17:06:44 +0000
committerDries Buytaert <dries@buytaert.net>2003-08-22 17:06:44 +0000
commit4e2ee96d4c04fbee06abcd3d0bf84a7893792c7f (patch)
treefe81455832b44894f1cb9b96a3690279a2c195f9 /modules/user.module
parent134c9eb8878a814d6955e6471aa10f93302d20f8 (diff)
downloadbrdo-4e2ee96d4c04fbee06abcd3d0bf84a7893792c7f.tar.gz
brdo-4e2ee96d4c04fbee06abcd3d0bf84a7893792c7f.tar.bz2
- Removed left-overs from the rating module. Patch by Gerhard. Updated the
PostgreSQL and MSSQL database scheme as well. - Made sure the update script updates the correct tables when database prefixing is enabled. Patch by Bart Jansens. - Improved the breadcrumb navigation of the book and the forum module as per Keith Instone's suggestions. - Updated page titles (or block titles) and links to match. Suggested by Keith Instone. - Added missing 'thread' field to the comment table of the MySQL database scheme. Fixes bug #2590.
Diffstat (limited to 'modules/user.module')
-rw-r--r--modules/user.module7
1 files changed, 3 insertions, 4 deletions
diff --git a/modules/user.module b/modules/user.module
index f8469639b..5b1069b60 100644
--- a/modules/user.module
+++ b/modules/user.module
@@ -334,7 +334,7 @@ function user_fields() {
}
// Make sure we return the default fields at least
- return is_array($fields) ? $fields: array("uid", "name", "pass", "mail", "homepage", "mode", "sort", "threshold", "theme", "signature", "timestamp", "status", "timezone", "rating", "language", "init", "data", "rid");
+ return is_array($fields) ? $fields: array("uid", "name", "pass", "mail", "homepage", "mode", "sort", "threshold", "theme", "signature", "timestamp", "status", "timezone", "language", "init", "data", "rid");
}
/*** Module hooks **********************************************************/
@@ -886,7 +886,7 @@ function user_register($edit = array()) {
user_role_init();
// TODO: is this necessary? Won't session_write replicate this?
unset($edit["session"]);
- $account = user_save("", array_merge(array("name" => $edit["name"], "pass" => $pass, "init" => $edit["mail"], "mail" => $edit["mail"], "rid" => _user_authenticated_id(), "rating" => 0, "status" => (variable_get("user_register", 1) == 1 ? 1 : 0)), $data));
+ $account = user_save("", array_merge(array("name" => $edit["name"], "pass" => $pass, "init" => $edit["mail"], "mail" => $edit["mail"], "rid" => _user_authenticated_id(), "status" => (variable_get("user_register", 1) == 1 ? 1 : 0)), $data));
watchdog("user", "new user: '". $edit["name"] ."' &lt;". $edit["mail"] ."&gt;", l(t("edit user"), "admin/user/edit/$account->uid"));
$variables = array("%username" => $edit["name"], "%site" => variable_get("site_name", "drupal"), "%password" => $pass, "%uri" => $base_url, "%uri_brief" => substr($base_url, strlen("http://")), "%mailto" => $edit["mail"], "%date" => format_date(time()));
@@ -1012,13 +1012,12 @@ function user_edit($edit = array()) {
*/
if (!user_access("administer users")) {
- if (array_intersect(array_keys($edit), array("rid", "init", "rating", "session"))) {
+ if (array_intersect(array_keys($edit), array("rid", "init", "session"))) {
watchdog("warning", "detected malicious attempt to alter a protected database field");
}
$edit["rid"] = $user->rid;
$edit["init"] = $user->init;
- $edit["rating"] = $user->rating;
$edit["session"] = $user->session;
}