diff options
Diffstat (limited to 'includes/countries_inc.php')
| -rw-r--r-- | includes/countries_inc.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/includes/countries_inc.php b/includes/countries_inc.php index a59cb12..c711720 100644 --- a/includes/countries_inc.php +++ b/includes/countries_inc.php @@ -526,3 +526,14 @@ $bwIso3166 = [ // Territories without clean entry: cp (Clipperton), dg (Diego Garcia), ic (Canary Islands) // Placeholder: xx (unknown flag) ]; + +asort( $bwCountries ); + +global $gBitSmarty, $gBitThemes; +if (!empty($gBitSmarty)) { + $gBitSmarty->assign( 'countries', $bwCountries ); + $gBitSmarty->assign( 'countryFlags', $bwIso3166 ); + if (!empty($gBitThemes)) { + $gBitThemes->loadCss( USERS_PKG_PATH.'css/flag-icons.css' ); + } +} |
