Plugin Directory

Changeset 1294792


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

check if maxmind geoip api is already loaded from another plugin 2

File:
1 edited

Legend:

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

    r1294738 r1294792  
    905905    function get_country_ip() {
    906906
    907         if ( !function_exists("geoip_country_code_by_addr") ) require 'GeoIP/geoip.inc';
     907        if ( !function_exists("geoip_country_code_by_addr") ) { require 'GeoIP/geoip.inc'; }
    908908        if ( !file_exists(plugin_dir_path(__FILE__)."GeoIP/GeoIP.dat") ) {
    909909            maxmind_db_update_check(); 
Note: See TracChangeset for help on using the changeset viewer.