From beb0db6852a246350d06dcfe508e3d2b9925731f Mon Sep 17 00:00:00 2001 From: msquare Date: Fri, 11 Nov 2016 16:42:47 +0100 Subject: fix misspellings --- includes/pages/user_settings.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'includes/pages/user_settings.php') diff --git a/includes/pages/user_settings.php b/includes/pages/user_settings.php index 600550d4..32bea8da 100644 --- a/includes/pages/user_settings.php +++ b/includes/pages/user_settings.php @@ -10,7 +10,7 @@ function settings_title() { * @param User $user_source * The user */ -function user_settings_main($user_source, $tshirt_sizes) { +function user_settings_main($user_source, $enable_tshirt_size, $tshirt_sizes) { $valid = true; if (isset($_REQUEST['mail']) && strlen(strip_request_item('mail')) > 0) { @@ -96,8 +96,6 @@ function user_settings_main($user_source, $tshirt_sizes) { * The user */ function user_settings_password($user_source) { - $valid = true; - if (! isset($_REQUEST['password']) || ! verify_password($_REQUEST['password'], $user_source['Passwort'], $user_source['UID'])) { error(_("-> not OK. Please try again.")); } elseif (strlen($_REQUEST['new_password']) < MIN_PASSWORD_LENGTH) { @@ -120,7 +118,7 @@ function user_settings_password($user_source) { * @param array $themes * List of available themes */ -function user_settings_theme($user_sources, $themes) { +function user_settings_theme($user_source, $themes) { $valid = true; if (isset($_REQUEST['theme']) && isset($themes[$_REQUEST['theme']])) { @@ -185,11 +183,11 @@ function user_settings() { $user_source = $user; if (isset($_REQUEST['submit'])) { - user_settings_main($user_source, $tshirt_sizes); + user_settings_main($user_source, $enable_tshirt_size, $tshirt_sizes); } elseif (isset($_REQUEST['submit_password'])) { user_settings_password($user_source); } elseif (isset($_REQUEST['submit_theme'])) { - user_settings_theme($user_sources, $themes); + user_settings_theme($user_source, $themes); } elseif (isset($_REQUEST['submit_language'])) { user_settings_locale($user_source, $locales); } -- cgit v1.2.3-70-g09d2