- Updates open rate tracking class constructor
This commit is contained in:
@ -31,8 +31,7 @@ class Clicks {
|
||||
->findOne();
|
||||
if(!$statistics) {
|
||||
// track open action in case it did not register
|
||||
$opens = new Opens($url);
|
||||
$opens->display_image = false;
|
||||
$opens = new Opens($url, $display_image = false);
|
||||
$opens->track();
|
||||
$statistics = StatisticsClicks::create();
|
||||
$statistics->newsletter_id = $newsletter_id;
|
||||
|
@ -8,10 +8,11 @@ if(!defined('ABSPATH')) exit;
|
||||
|
||||
class Opens {
|
||||
public $data;
|
||||
public $display_image = true;
|
||||
public $display_image;
|
||||
|
||||
function __construct($data) {
|
||||
function __construct($data, $display_image = true) {
|
||||
$this->data = $data;
|
||||
$this->display_image = $display_image;
|
||||
}
|
||||
|
||||
function track($data = false) {
|
||||
|
Reference in New Issue
Block a user