From c33fc61a543244686ddc31e0639250c4697bf8e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=BCneyt=20=C5=9Eent=C3=BCrk?= Date: Fri, 17 Jun 2022 10:03:33 +0300 Subject: [PATCH] Fixed notification message.. --- app/Listeners/Menu/ShowInNotifications.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/Listeners/Menu/ShowInNotifications.php b/app/Listeners/Menu/ShowInNotifications.php index 49d499e47..6ba776b82 100644 --- a/app/Listeners/Menu/ShowInNotifications.php +++ b/app/Listeners/Menu/ShowInNotifications.php @@ -32,6 +32,7 @@ class ShowInNotifications foreach ($updates as $key => $update) { $prefix = ($key == 'core') ? 'core' : 'module'; + $name = ($prefix == 'core') ? 'Akaunting' : module($key)->getName(); $new = new DatabaseNotification(); $new->id = $key; @@ -39,8 +40,8 @@ class ShowInNotifications $new->notifiable_type = "users"; $new->notifiable_id = user()->id; $new->data = [ - 'title' => $key . ' (v' . $update . ')', - 'description' => '' . trans('install.update.' . $prefix) . '', + 'title' => $name . ' (v' . $update . ')', + 'description' => '' . trans('install.update.' . $prefix, ['module' => $name]) . '', ]; $new->created_at = \Carbon\Carbon::now();