Plugin Directory

Changeset 2001286


Ignore:
Timestamp:
12/25/2018 09:19:12 AM (7 years ago)
Author:
alonezcount
Message:

add a warning if allow_url_fopen is not on

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ezcount/trunk/EZcount_helpers.php

    r1961848 r2001286  
    1414
    1515    public static function sendJsonRequest($url, $data = array()) {
     16        if (!(1 * ini_get('allow_url_fopen'))) {
     17            self::$lastResponseDebugStr= "Please enable `allow_url_fopen` in your php.ini";
     18            return null;
     19        }
     20
    1621        //do validation
    1722        $zc_payment = new WC_Gateway_EZcount();
Note: See TracChangeset for help on using the changeset viewer.