Plugin Directory

Changeset 1294738


Ignore:
Timestamp:
11/26/2015 07:53:40 AM (10 years ago)
Author:
hqpeak
Message:

check if maxmind geoip api is already loaded from another plugin

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tor-exit-nodes-blocker/trunk/torblocker.php

    r1294152 r1294738  
    903903   
    904904    // Get country code by IP
    905     function get_country_ip() {     
    906         require 'GeoIP/geoip.inc';
     905    function get_country_ip() {
     906
     907        if ( !function_exists("geoip_country_code_by_addr") ) require 'GeoIP/geoip.inc';
    907908        if ( !file_exists(plugin_dir_path(__FILE__)."GeoIP/GeoIP.dat") ) {
    908909            maxmind_db_update_check(); 
Note: See TracChangeset for help on using the changeset viewer.