From 760da5c86461d541c8265aa9f1355b44c62c07d8 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Mon, 16 Aug 2021 07:15:03 +1000 Subject: [PATCH] Fixes for support messages --- app/Mail/SupportMessageSent.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/Mail/SupportMessageSent.php b/app/Mail/SupportMessageSent.php index 709c9058ee26..ff50840209a7 100644 --- a/app/Mail/SupportMessageSent.php +++ b/app/Mail/SupportMessageSent.php @@ -54,6 +54,7 @@ class SupportMessageSent extends Mailable $priority = ''; $plan = $account->plan ?: ''; + $plan = ucfirst($plan); if(strlen($plan) >1) $priority = '[PRIORITY] '; @@ -63,9 +64,9 @@ class SupportMessageSent extends Mailable $db = str_replace("db-ninja-", "", $company->db); if(Ninja::isHosted()) - $subject = "{$priority}Hosted-{$db} :: {ucfirst($plan)} :: ".date('M jS, g:ia'); + $subject = "{$priority}Hosted-{$db} :: {$plan} :: ".date('M jS, g:ia'); else - $subject = "{$priority}Self Hosted :: {ucfirst($plan)} :: ".date('M jS, g:ia'); + $subject = "{$priority}Self Hosted :: {$plan} :: ".date('M jS, g:ia'); return $this->from(config('mail.from.address'), $user->present()->name()) ->replyTo($user->email, $user->present()->name())