Skip to content

Commit

Permalink
De-inline compose.php
Browse files Browse the repository at this point in the history
Signed-off-by: Pablo Zmdl <[email protected]>
  • Loading branch information
pabzm committed Jun 21, 2024
1 parent 5a45d79 commit 7f5291c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions program/actions/mail/compose.php
Original file line number Diff line number Diff line change
Expand Up @@ -1255,8 +1255,7 @@ public static function write_forward_attachments()
'name' => 'msgsizeerrorfwd',
'vars' => ['num' => $size_errors, 'size' => $limit],
]);
$script = sprintf("%s.display_message('%s', 'error');", rcmail_output::JS_OBJECT_NAME, rcube::JQ($error));
$rcmail->output->add_script($script, 'docready');
$rcmail->output->command('display_message', rcube::JQ($error), 'error');
}
}

Expand Down

0 comments on commit 7f5291c

Please sign in to comment.