diff options
| author | Lester Caine <lester@lsces.co.uk> | 2026-06-05 11:49:47 +0100 |
|---|---|---|
| committer | Lester Caine <lester@lsces.co.uk> | 2026-06-05 11:49:47 +0100 |
| commit | b27276bcd349afa551d0be6f3a4f87e9fcff9f3a (patch) | |
| tree | 3c72b7b98ee2ce7cc8c18c44bf01447f94b6cbef /modules | |
| parent | eb18d270a3face41198949f8f435d0be9a4c40dc (diff) | |
| download | users-b27276bcd349afa551d0be6f3a4f87e9fcff9f3a.tar.gz users-b27276bcd349afa551d0be6f3a4f87e9fcff9f3a.tar.bz2 users-b27276bcd349afa551d0be6f3a4f87e9fcff9f3a.zip | |
Replace GIF flag scan with static ISO alpha-3 country list and SVG flags
- Add countries_inc.php: 252 countries as alpha-3 → name + alpha-3 → alpha-2
map for flag image lookup; derived from webtrees CountryService, no runtime
webtrees dependency
- Add 243 Marble SVG flags (xx.svg) plus eng/sct/wls/nir for constituent countries
- Remove 244 full-name GIF flags
- RoleUser: set users_country_code (alpha-3), flag (alpha-2 lowercase), and
users_country (display name) at load time
- preferences.php, register.php, hauth_register.php: replace opendir GIF scan
with require_once countries_inc.php
- Templates: replace {section loop=$flags} with {foreach $countries as $code => $name};
iexplain now uses display name instead of raw flag code
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/mod_user_profile.tpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/mod_user_profile.tpl b/modules/mod_user_profile.tpl index d37bd8b..7b726d2 100644 --- a/modules/mod_user_profile.tpl +++ b/modules/mod_user_profile.tpl @@ -34,7 +34,7 @@ <div>{tr}Joined{/tr}: {$userInfo.registration_date|bit_short_date}</div> <div>{tr}Last visit{/tr}: {$userInfo.last_login|bit_short_date}</div> - {if $userPrefs.flag}{biticon iforce=icon ipackage=users ipath="flags/" iname=$userPrefs.flag iexplain=$userPrefs.flag}{/if} {assign var=langcode value=$userPrefs.bitlanguage|default:$gBitSystem->getConfig('bitlanguage','en')}{$gBitLanguage->mLanguageList.$langcode.native_name} + {if $userPrefs.flag}{biticon iforce=icon ipackage=users ipath="flags/" iname=$userPrefs.flag iexplain=$userPrefs.users_country}{/if} {assign var=langcode value=$userPrefs.bitlanguage|default:$gBitSystem->getConfig('bitlanguage','en')}{$gBitLanguage->mLanguageList.$langcode.native_name} {/bitmodule} {/strip} {/if} |
