Skip to content

Commit

Permalink
Merge pull request #190 from dbarzin/dev
Browse files Browse the repository at this point in the history
fix default message
  • Loading branch information
dbarzin authored Oct 16, 2024
2 parents 1cc6126 + 770ad18 commit 2e842cb
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions app/Console/Commands/SendNotifications.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,13 @@ public function handle()
$to_email = $user->email;
$subject = config('deming.notification.mail-subject');

// Apply message model
$message = str_replace("%table%",$txt,config('deming.notification.mail-content'));
// Get message model
$message = config('deming.notification.mail-content');
if (($message==null)||(strlen($message)==0))
$message = trans('cruds.config.notifications.message_default_content');

// Replace %table% in message model
$message = str_replace("%table%",$txt,$message);

// Send mail
if (mail(
Expand Down

0 comments on commit 2e842cb

Please sign in to comment.