Replace unsubscribe link short code strings by constant

[MAILPOET-2245]
This commit is contained in:
Rostislav Wolny
2019-10-01 10:08:40 +02:00
committed by Jack Kitterhing
parent 6ae61a3e9b
commit 4fbf8ed7be
3 changed files with 4 additions and 3 deletions

View File

@ -42,7 +42,7 @@ class Links {
$settings = new SettingsController();
if ((boolean)$settings->get('tracking.enabled')) {
$link_hash = NewsletterLinkModel::where('queue_id', $queue->id)
->where('url', '[link:subscription_unsubscribe_url]')
->where('url', NewsletterLinkModel::UNSUBSCRIBE_LINK_SHORT_CODE)
->findOne();
if (!$link_hash instanceof NewsletterLinkModel) {
return '';