diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2010-01-16 21:15:12 -0800 |
|---|---|---|
| committer | Bharat Mediratta <bharat@menalto.com> | 2010-01-16 21:15:12 -0800 |
| commit | 6a4dda9bdef81bcf79abe5601fd7309e593078f3 (patch) | |
| tree | 6b6dbe69481ec3f1bbb783b7ce5c843c03090180 /modules/user/controllers/users.php | |
| parent | a691dcc63cb6403784e061997cc85606a8f953b3 (diff) | |
Convert Admin_Users_Controller, User_Model and Group_Model to use
model based validation.
Diffstat (limited to 'modules/user/controllers/users.php')
| -rw-r--r-- | modules/user/controllers/users.php | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/modules/user/controllers/users.php b/modules/user/controllers/users.php index ca218393..71f9a889 100644 --- a/modules/user/controllers/users.php +++ b/modules/user/controllers/users.php @@ -95,14 +95,13 @@ class Users_Controller extends Controller { foreach ($locales as $locale => $display_name) { $locales[$locale] = SafeString::of_safe_html($display_name); } - if (count($locales) > 1) { - // Put "none" at the first position in the array - $locales = array_merge(array("" => t("« none »")), $locales); - $selected_locale = ($user && $user->locale) ? $user->locale : ""; - $form->dropdown("locale") - ->label(t("Language Preference")) - ->options($locales) - ->selected($selected_locale); - } + + // Put "none" at the first position in the array + $locales = array_merge(array("" => t("« none »")), $locales); + $selected_locale = ($user && $user->locale) ? $user->locale : ""; + $form->dropdown("locale") + ->label(t("Language Preference")) + ->options($locales) + ->selected($selected_locale); } } |
