From dccfc05f63f52d96ed3477eaba0481e37de62964 Mon Sep 17 00:00:00 2001 From: dingguodong Date: Wed, 12 Jul 2023 14:47:47 +0800 Subject: [PATCH] * Set domain variable to a standalone line. --- module/mail/model.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module/mail/model.php b/module/mail/model.php index b3995f5f84..c0d8b4f7c8 100644 --- a/module/mail/model.php +++ b/module/mail/model.php @@ -696,6 +696,7 @@ class mailModel extends model $nameFields = $this->config->action->objectNameFields[$objectType]; $title = zget($object, $nameFields, ''); $subject = $this->getSubject($objectType, $object, $title, $action->action); + $domain = zget($this->config->mail, 'domain', common::getSysURL()); if($objectType == 'review' and empty($object->auditedBy)) return; @@ -715,7 +716,7 @@ class mailModel extends model $action->extra = $extra; if($title) { - $action->appendLink = html::a(zget($this->config->mail, 'domain', common::getSysURL()) . helper::createLink($action->objectType, 'view', "id=$id", 'html'), "#$id " . $title); + $action->appendLink = html::a($domain . helper::createLink($action->objectType, 'view', "id=$id", 'html'), "#$id " . $title); } }