summaryrefslogtreecommitdiff
path: root/modules/user/user.module
diff options
context:
space:
mode:
authorKjartan Mannes <kjartan@2.no-reply.drupal.org>2003-03-09 17:19:50 +0000
committerKjartan Mannes <kjartan@2.no-reply.drupal.org>2003-03-09 17:19:50 +0000
commit1421c878d16f7d88bcc85c0dfc4b7c006b267526 (patch)
tree9b5227732b6c4f9a59fc7a1e190b14b4a13a30d0 /modules/user/user.module
parentf2c914af5b04297fccd8951f8c57c5472a70f9de (diff)
downloadbrdo-1421c878d16f7d88bcc85c0dfc4b7c006b267526.tar.gz
brdo-1421c878d16f7d88bcc85c0dfc4b7c006b267526.tar.bz2
- Moved moderation logic back into node module.
* After having a chat with Dries we have agreed on the logics (or more specifically he told me how its supposed to work). The queue module is just a method to make moderation public, but its not necessarily the only way. This brings the power back. - Minor interface tweaks (names, case changes, etc). - Fixed error that would show when you tried to view the profile of a blocked user.
Diffstat (limited to 'modules/user/user.module')
-rw-r--r--modules/user/user.module7
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/user/user.module b/modules/user/user.module
index 425a8029c..132b61db1 100644
--- a/modules/user/user.module
+++ b/modules/user/user.module
@@ -1046,8 +1046,9 @@ function user_view($uid = 0) {
theme("footer");
}
else {
+ $output = user_login();
theme("header");
- theme("box", t("Log in"), user_login());
+ theme("box", t("Log in"), $output);
if (variable_get("user_register", 1)) {
theme("box", t("Create new user account"), user_register());
}
@@ -1500,10 +1501,10 @@ function user_admin_account() {
$rows[] = array(format_name($account), format_date($account->timestamp, "small"), l(t("edit account"), "admin/user/edit/$account->uid"));
}
- if ($pager = pager_display(NULL, 50, 0, "admin")) {
+ $pager = pager_display(NULL, 50, 0, "admin");
+ if (!empty($pager)) {
$rows[] = array(array("data" => $pager, "colspan" => 3));
}
-
return table($header, $rows);
}