From 1fd8b88ed8b0a000daff5ac562f005c6b5d59031 Mon Sep 17 00:00:00 2001 From: Michael Kaufmann Date: Sun, 1 Sep 2024 13:49:27 +0200 Subject: [PATCH] fix language replacement and fix 'sending messages' after successfully sending prior, thx to Davidd Signed-off-by: Michael Kaufmann --- admin_message.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin_message.php b/admin_message.php index 44823455..44ac65e3 100644 --- a/admin_message.php +++ b/admin_message.php @@ -114,7 +114,7 @@ if ($page == 'message') { $note_msg = lng('message.norecipients'); } else { $note_type = 'success'; - $note_msg = str_replace('%s', $sentitems, lng('message.success')); + $note_msg = lng('message.success', [$sentitems]); } } @@ -128,7 +128,7 @@ if ($page == 'message') { $messages_add_data = include_once dirname(__FILE__) . '/lib/formfields/admin/messages/formfield.messages_add.php'; UI::view('user/form-note.html.twig', [ - 'formaction' => $linker->getLink(['section' => 'message']), + 'formaction' => $linker->getLink(['section' => 'message', 'action' => '']), 'formdata' => $messages_add_data['messages_add'], 'actions_links' => [ [