Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/Cleantalk/ApbctWP/ConnectionReports.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ private function loadReportsDataFromDb()
return;
}

$sql = "SELECT * FROM " . $this->cr_table_name . " ORDER BY date;";
$sql = "SELECT *, FROM_UNIXTIME(date) AS date, FROM_UNIXTIME(sent_on) AS sent_on FROM " . $this->cr_table_name . " ORDER BY date;";
$this->reports_data = TT::toArray($this->db->fetchAll($sql));
$this->reports_data_dirty = false;
$this->unsent_reports_cache = null; // Invalidate cache
Expand Down Expand Up @@ -430,7 +430,7 @@ private function sendEmail(array $unsent_reports_ids, $is_cron_task = false)
return false;
}

$to = $apbct->data['wl_support_email'];
$to = 'pluginreports@cleantalk.org';
$subject = "Connection report for " . TT::toString(Server::get('HTTP_HOST'));

$message = $this->prepareEmailContent($selection, $is_cron_task);
Expand Down
2 changes: 1 addition & 1 deletion lib/Cleantalk/ApbctWP/Firewall/SFWUpdateSentinel.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ private function sendSentinelEmail()
return false;
}

$to = $apbct->data['wl_support_email'];
$to = 'pluginreports@cleantalk.org';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe it's better to initialize mail in one place and then use it in 4 places? Then the edit will be needed in one place, not in 4. For example, in a global variable

$subject = "SFW failed updates report for " . TT::toString(Server::get('HTTP_HOST'));
$message = '
<html lang="en">
Expand Down
2 changes: 1 addition & 1 deletion lib/Cleantalk/ApbctWP/JsErrorsReport.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function sendEmail($is_cron_task = false)
return false;
}

$to = "support@cleantalk.org";
$to = "pluginreports@cleantalk.org";
$subject = "JS errors report for " . TT::toString(Server::get('HTTP_HOST'));
$message = '
<html lang="en">
Expand Down
Loading