Skip to content

Commit

Permalink
Fix #1426: Lang/Theme fields in User edit form
Browse files Browse the repository at this point in the history
Fix missing selectors for Language and Theme fields in User edit form.
  • Loading branch information
macik committed Aug 7, 2015
1 parent 8c70fa3 commit e3dbb52
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
8 changes: 5 additions & 3 deletions modules/users/inc/users.edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,11 @@
$ruser['user_banexpire'] = cot_import('ruserbanexpire','P','INT');
$ruser['user_country'] = cot_import('rusercountry','P','ALP');
$ruser['user_text'] = cot_import('rusertext','P','HTM');
$rtheme = explode(':', cot_import('rusertheme','P','TXT'));
$ruser['user_theme'] = $rtheme[0];
$ruser['user_scheme'] = $rtheme[1];
$ruser['user_email'] = cot_import('ruseremail','P','TXT');
$ruser['user_hideemail'] = cot_import('ruserhideemail','P','INT');
$ruser['user_theme'] = cot_import('rusertheme','P','TXT');
$ruser['user_lang'] = cot_import('ruserlang','P','ALP');
$ruser['user_gender'] = cot_import('rusergender','P','TXT');

Expand Down Expand Up @@ -287,8 +289,8 @@
'USERS_EDIT_NAME' => cot_inputbox('text', 'rusername', $urr['user_name'], array('size' => 32, 'maxlength' => 100) + $protected),
'USERS_EDIT_ACTIVE' => $user_form_active,
'USERS_EDIT_BANNED' => $user_form_banned,
'USERS_EDIT_THEME' => cot_inputbox('text', 'rusertheme', $urr['user_theme'], array('size' => 32, 'maxlength' => 32)),
'USERS_EDIT_LANG' => cot_inputbox('text', 'ruserlang', $urr['user_lang'], array('size' => 32, 'maxlength' => 32)),
'USERS_EDIT_THEME' => cot_selectbox_theme($urr['user_theme'], $urr['user_scheme'], 'rusertheme'),
'USERS_EDIT_LANG' => cot_selectbox_lang($urr['user_lang'], 'ruserlang'),
'USERS_EDIT_NEWPASS' => cot_inputbox('password', 'rusernewpass', '', array('size' => 12, 'maxlength' => 32, 'autocomplete' => 'off') + $protected),
'USERS_EDIT_MAINGRP' => cot_build_group($urr['user_maingrp']),
'USERS_EDIT_GROUPS' => cot_build_groupsms($urr['user_id'], $usr['isadmin'], $urr['user_maingrp']),
Expand Down
6 changes: 3 additions & 3 deletions modules/users/users.setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
[BEGIN_COT_EXT]
Name=Users
Description=Users registration and profiles
Version=0.9.4.3
Date=2011-08-27
Version=0.9.4.4
Date=2015-08-07
Author=Neocrome & Cotonti Team
Copyright=(c) Cotonti Team 2008-2011
Copyright=(c) Cotonti Team 2008-2015
Notes=BSD License
Auth_guests=R
Lock_guests=A
Expand Down
1 change: 1 addition & 0 deletions system/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -2149,6 +2149,7 @@ function cot_generate_usertags($user_data, $tag_prefix = '', $emptyname='', $all
'EMAIL' => cot_build_email($user_data['user_email'], $user_data['user_hideemail']),
'THEME' => $user_data['user_theme'],
'SCHEME' => $user_data['user_scheme'],
'LANG' => $user_data['user_lang'],
'GENDER' => ($user_data['user_gender'] == '' || $user_data['user_gender'] == 'U') ? '' : $L['Gender_' . $user_data['user_gender']],
'BIRTHDATE' => (is_null($user_data['user_birthdate'])) ? '' : cot_date('date_full', $user_data['user_birthdate']),
'BIRTHDATE_STAMP' => (is_null($user_data['user_birthdate'])) ? '' : $user_data['user_birthdate'],
Expand Down

0 comments on commit e3dbb52

Please sign in to comment.