Plugin Directory

Changeset 2958944


Ignore:
Timestamp:
08/27/2023 07:57:33 PM (3 years ago)
Author:
RewardsFuel
Message:

Updating use of self in error handler

File:
1 edited

Legend:

Unmodified
Added
Removed
  • contests-from-rewards-fuel/trunk/includes/Class_rf.php

    r2886870 r2958944  
    44class Class_rf {
    55    private $debug = false;
    6     private $api_home;
     6    private $api_home,$cl;
    77    public function __construct() {
    88        if ( defined( 'CONTESTS_FROM_REWARDS_FUEL_VERSION' ) ) {
     
    1111            $this->version = '2.0.59';
    1212        }
     13        $this->cl = $this;
    1314        $this->api_home ="https://app.rewardsfuel.com/api/wp_v2/";//todo update this to sub url
    14         set_exception_handler(array('self', 'exc_handler'));
    15         set_error_handler(array('self', 'err_handler'));
     15        set_exception_handler(array($this->cl, 'exc_handler'));
     16        set_error_handler(array($this->cl, 'err_handler'));
    1617    }
    1718
Note: See TracChangeset for help on using the changeset viewer.