X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=index.php;h=1e255583823a69626d469750b13640dee268e7f5;hb=6a19124a0970dfd5744c4a193b5d907ba85b323e;hp=8f26c3903d154e418c2eb57e2db570e3f45c2725;hpb=c8cb5c282402e3f19497ba9e57ac967a4bdefa1b;p=github%2Fshaarli%2FShaarli.git diff --git a/index.php b/index.php index 8f26c390..1e255583 100644 --- a/index.php +++ b/index.php @@ -1489,7 +1489,22 @@ function renderPage($conf, $pluginManager, $LINKSDB) if (! isset($_POST['token']) || ! isset($_FILES['filetoupload'])) { // Show import dialog - $PAGE->assign('maxfilesize', get_max_upload_size(ini_get('post_max_size'), ini_get('upload_max_filesize'))); + $PAGE->assign( + 'maxfilesize', + get_max_upload_size( + ini_get('post_max_size'), + ini_get('upload_max_filesize'), + false + ) + ); + $PAGE->assign( + 'maxfilesizeHuman', + get_max_upload_size( + ini_get('post_max_size'), + ini_get('upload_max_filesize'), + true + ) + ); $PAGE->renderPage('import'); exit; }