Skip to content

Commit

Permalink
fix language replacement and fix 'sending messages' after successfull…
Browse files Browse the repository at this point in the history
…y sending prior, thx to Davidd

Signed-off-by: Michael Kaufmann <[email protected]>
  • Loading branch information
d00p committed Sep 1, 2024
1 parent 16d77a0 commit 1fd8b88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions admin_message.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
$note_msg = lng('message.norecipients');
} else {
$note_type = 'success';
$note_msg = str_replace('%s', $sentitems, lng('message.success'));
$note_msg = lng('message.success', [$sentitems]);
}
}

Expand All @@ -128,7 +128,7 @@
$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' => [
[
Expand Down

0 comments on commit 1fd8b88

Please sign in to comment.