Changeset 105201 in spip-zone


Ignore:
Timestamp:
Jul 4, 2017, 2:09:09 PM (4 years ago)
Author:
marcimat@…
Message:

Cette fonction peut exister aussi dans le PHP

Location:
_dev_/univers_spip
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • _dev_/univers_spip/geoip/geoip.php

    r98229 r105201  
    371371    $country_id = geoip_country_id_by_name($gi,$name);
    372372    if ($country_id !== false) {
    373           return $gi->GEOIP_COUNTRY_CODES[$country_id];
     373      return $gi->GEOIP_COUNTRY_CODES[$country_id];
    374374    }
    375375    return false;
     
    377377}
    378378
    379 function geoip_country_name_by_name($gi, $name) {
    380   $country_id = geoip_country_id_by_name($gi,$name);
    381   if ($country_id !== false) {
    382         return $gi->GEOIP_COUNTRY_NAMES[$country_id];
    383   }
    384   return false;
     379if (!function_exists('geoip_country_name_by_name')){
     380  function geoip_country_name_by_name($gi, $name) {
     381    $country_id = geoip_country_id_by_name($gi,$name);
     382    if ($country_id !== false) {
     383      return $gi->GEOIP_COUNTRY_NAMES[$country_id];
     384    }
     385    return false;
     386}
    385387}
    386388
  • _dev_/univers_spip/plugin.xml

    r98229 r105201  
    44        <licence>GPL</licence>
    55        <etat>test</etat>
    6         <version>0.2.21</version>
     6        <version>0.2.22</version>
    77        <version_base>0.1.9</version_base>
    88        <install>base/univers.php</install>
Note: See TracChangeset for help on using the changeset viewer.