Browse Source

Cette fonction peut exister aussi dans le PHP

svn/root
marcimat@rezo.net 4 years ago
parent
commit
1420adf3d3
2 changed files with 10 additions and 8 deletions
  1. +9
    -7
      geoip/geoip.php
  2. +1
    -1
      plugin.xml

+ 9
- 7
geoip/geoip.php View File

@ -370,18 +370,20 @@ if (!function_exists('geoip_country_code_by_name')){
function geoip_country_code_by_name($gi, $name) {
$country_id = geoip_country_id_by_name($gi,$name);
if ($country_id !== false) {
return $gi->GEOIP_COUNTRY_CODES[$country_id];
return $gi->GEOIP_COUNTRY_CODES[$country_id];
}
return false;
}
}
function geoip_country_name_by_name($gi, $name) {
$country_id = geoip_country_id_by_name($gi,$name);
if ($country_id !== false) {
return $gi->GEOIP_COUNTRY_NAMES[$country_id];
}
return false;
if (!function_exists('geoip_country_name_by_name')){
function geoip_country_name_by_name($gi, $name) {
$country_id = geoip_country_id_by_name($gi,$name);
if ($country_id !== false) {
return $gi->GEOIP_COUNTRY_NAMES[$country_id];
}
return false;
}
}
function geoip_country_id_by_addr($gi, $addr) {


+ 1
- 1
plugin.xml View File

@ -3,7 +3,7 @@
<auteur>&#169; 2010 C&eacute;dric MORIN</auteur>
<licence>GPL</licence>
<etat>test</etat>
<version>0.2.21</version>
<version>0.2.22</version>
<version_base>0.1.9</version_base>
<install>base/univers.php</install>
<description>


Loading…
Cancel
Save