diff options
author | Kjartan Mannes <kjartan@2.no-reply.drupal.org> | 2002-05-24 12:27:10 +0000 |
---|---|---|
committer | Kjartan Mannes <kjartan@2.no-reply.drupal.org> | 2002-05-24 12:27:10 +0000 |
commit | f711baceb7ab2c1a9abfa558a55ce862e2092138 (patch) | |
tree | f77014f498780b3ceb74cd361f4b876858a10fb6 /modules/user/user.module | |
parent | 793db8316fd1a0562a63ecd7b4eb5e2b2366bdbe (diff) | |
download | brdo-f711baceb7ab2c1a9abfa558a55ce862e2092138.tar.gz brdo-f711baceb7ab2c1a9abfa558a55ce862e2092138.tar.bz2 |
- the user_admin_edit() would loose the theme settings.
- added some more help text to page.module.
Diffstat (limited to 'modules/user/user.module')
-rw-r--r-- | modules/user/user.module | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/user/user.module b/modules/user/user.module index b671915ab..5242a5b50 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -1044,7 +1044,7 @@ function user_delete() { } function user_edit($edit = array()) { - global $themes, $user, $languages; + global $user, $languages; if ($user->uid) { if ($edit["name"]) { @@ -1535,7 +1535,7 @@ function user_admin_role($edit = array()) { } function user_admin_edit($edit = array()) { - global $op, $id, $themes; + global $op, $id; if ($account = user_load(array("uid" => $id))) { @@ -1617,7 +1617,7 @@ function user_admin_edit($edit = array()) { $output .= form_textfield(t("Homepage"), "homepage", $account->homepage, 30, 55, t("Optional") .". ". t("Make sure you enter a fully qualified URL: remember to include \"http://\".")); foreach (theme_list() as $key => $value) { - $options .= "$value[type]<option value=\"$key\"". (($user->theme == $key) ? " selected=\"selected\"" : "") .">$key - $value->description</option>\n"; + $options .= "$value[type]<option value=\"$key\"". (($account->theme == $key) ? " selected=\"selected\"" : "") .">$key - $value->description</option>\n"; } $output .= form_item(t("Theme"), "<select name=\"edit[theme]\">$options</select>", t("Selecting a different theme will change the look and feel of the site.")); for ($zone = -43200; $zone <= 46800; $zone += 3600) $zones[$zone] = date("l, F dS, Y - h:i A", time() - date("Z") + $zone) ." (GMT ". $zone / 3600 .")"; @@ -1677,7 +1677,7 @@ function admin_access_init() { } function user_admin() { - global $edit, $id, $op, $user; + global $edit, $id, $op; if (user_access("administer users")) { /* |