Skip to content

Commit 643bd62

Browse files
1.0.4
1 parent 6cc7c54 commit 643bd62

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mage2pro/flag"
3-
,"version": "1.0.3"
3+
,"version": "1.0.4"
44
,"description": "A Magento 2 interface to the lipis/flag-icon-css library."
55
,"type": "magento2-module"
66
,"homepage": "https://mage2.pro"

lib/main.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ function df_flag_link() {return df_link_inline(df_asset_name(null, 'Df_Flag', 'c
99
/**
1010
* 2017-05-13
1111
* @used-by https://github.com/mage2pro/portal-stripe/blob/0.3.9/view/frontend/templates/page/customers.phtml#L27
12-
* @param string $country
12+
* @param string $iso2
1313
* @param string $content [optional]
1414
* @return string
1515
*/
16-
function df_flag_span($country, $content = null) {return df_tag(
17-
'span', 'flag-icon flag-icon-' . strtolower($country), $content
16+
function df_flag_span($iso2, $content = null) {return df_tag(
17+
'span', 'flag-icon flag-icon-' . strtolower('uk' === $iso2 ? 'gb' : $iso2), $content
1818
);}

0 commit comments

Comments
 (0)