diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-11-23 11:19:36 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-11-23 11:19:36 +0000 |
commit | 2fa2497744c77ed17daecb7833484e879da50216 (patch) | |
tree | 687f2bc1bf4692fd14e409c4073799533829c244 | |
parent | 26735ac5dd06c064bb816bcf264fbeb44ac3b0b7 (diff) | |
download | brdo-2fa2497744c77ed17daecb7833484e879da50216.tar.gz brdo-2fa2497744c77ed17daecb7833484e879da50216.tar.bz2 |
- Committed patch #165 by Moshe.
-rw-r--r-- | modules/system.module | 14 | ||||
-rw-r--r-- | modules/system/system.module | 14 |
2 files changed, 14 insertions, 14 deletions
diff --git a/modules/system.module b/modules/system.module index 32149bc28..e8f992c2a 100644 --- a/modules/system.module +++ b/modules/system.module @@ -88,14 +88,14 @@ function system_link($type) { } function system_user($type, &$edit, $user) { - $options = "<option value=\"\"". (("" == $key) ? " selected=\"selected\"" : "") .">". t("Default theme") ."</option>\n"; - if ($type == "edit_form" && count($themes = list_themes()) > 1) { - foreach ($themes as $key => $value) { - $options .= "<option value=\"$key\"". (($edit["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.")); - } if ($type == "edit_form") { + $options = "<option value=\"\"". (("" == $key) ? " selected=\"selected\"" : "") .">". t("Default theme") ."</option>\n"; + if (count($themes = list_themes()) > 1) { + foreach ($themes as $key => $value) { + $options .= "<option value=\"$key\"". (($edit["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.")); + } $zonelist = array(-11, -10, -9.5, -9, -8, -7, -6, -5, -4, -3.5, -3, -2, -1, 0, 1, 2, 3, 3.5, 4, 5, 5.5, 5.75, 6, 6.5, 7, 8, 9, 9.5, 10, 10.5, 11, 11.5, 12, 12.75, 13, 14); foreach ($zonelist as $offset) { $zone = $offset * 3600; diff --git a/modules/system/system.module b/modules/system/system.module index 32149bc28..e8f992c2a 100644 --- a/modules/system/system.module +++ b/modules/system/system.module @@ -88,14 +88,14 @@ function system_link($type) { } function system_user($type, &$edit, $user) { - $options = "<option value=\"\"". (("" == $key) ? " selected=\"selected\"" : "") .">". t("Default theme") ."</option>\n"; - if ($type == "edit_form" && count($themes = list_themes()) > 1) { - foreach ($themes as $key => $value) { - $options .= "<option value=\"$key\"". (($edit["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.")); - } if ($type == "edit_form") { + $options = "<option value=\"\"". (("" == $key) ? " selected=\"selected\"" : "") .">". t("Default theme") ."</option>\n"; + if (count($themes = list_themes()) > 1) { + foreach ($themes as $key => $value) { + $options .= "<option value=\"$key\"". (($edit["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.")); + } $zonelist = array(-11, -10, -9.5, -9, -8, -7, -6, -5, -4, -3.5, -3, -2, -1, 0, 1, 2, 3, 3.5, 4, 5, 5.5, 5.75, 6, 6.5, 7, 8, 9, 9.5, 10, 10.5, 11, 11.5, 12, 12.75, 13, 14); foreach ($zonelist as $offset) { $zone = $offset * 3600; |