Skip to content

Commit

Permalink
Display a hint about max file size for contacts import
Browse files Browse the repository at this point in the history
  • Loading branch information
alecpl committed May 22, 2018
1 parent a235002 commit b08a5e7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion program/steps/addressbook/import.inc
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ function rcmail_import_form($attrib)
$attrib += array('id' => "rcmImportForm");

$writable_books = $RCMAIL->get_address_sources(true, true);
$max_filesize = $RCMAIL->upload_init();

$form = '';
$table = new html_table(array('cols' => 2));
Expand All @@ -216,7 +217,9 @@ function rcmail_import_form($attrib)
));

$table->add('title', html::label('rcmimportfile', $RCMAIL->gettext('importfromfile')));
$table->add(null, $upload->show());
$table->add(null, $upload->show()
. html::div('hint', $RCMAIL->gettext(array('id' => 'importfile', 'name' => 'maxuploadsize', 'vars' => array('size' => $max_filesize))))
);

// addressbook selector
if (count($writable_books) > 1) {
Expand Down

0 comments on commit b08a5e7

Please sign in to comment.