Added ability to set country name manually (#1652)

* Minor improvements

* Updated

* Revert "Updated"

This reverts commit 927e085cc0.

* Update CHANGELOG.md

* Update usercp_register.tpl

* Updated

* Updated

* Updated

* Update usercp_register.tpl

* Update usercp_register.tpl

* Update usercp_register.tpl

* Updated

* Update CHANGELOG.md

* Update usercp_register.tpl
This commit is contained in:
Roman Kelesidis 2024-10-05 14:02:35 +07:00 committed by GitHub
commit 408635cd52
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 42 additions and 7 deletions

View file

@ -465,8 +465,10 @@ foreach ($profile_fields as $field => $can_edit) {
$pr_data['user_from'] = $from;
$db_data['user_from'] = (string)$from;
}
$tp_data['USER_FROM'] = $pr_data['user_from'];
$tp_data['COUNTRY_SELECTED'] = render_flag($pr_data['user_from']);
$tp_data['COUNTRY_SELECT'] = build_select('user_from', array_flip($lang['COUNTRIES']), $pr_data['user_from']);
$tp_data['CHECKED_MANUAL_COUNTRY'] = ($tp_data['COUNTRY_SELECTED'] === $pr_data['user_from']) ? 'checked' : '';
break;
/**