From: Jakub Vrana Date: Sun, 27 Mar 2011 22:56:48 +0000 (+0200) Subject: Show only errors with file upload by default X-Git-Tag: v3.2.2~4 X-Git-Url: https://git.joonet.de/?a=commitdiff_plain;h=63f197213e2e1664399aaab8db4293a95ada0593;p=adminer.git Show only errors with file upload by default --- diff --git a/adminer/sql.inc.php b/adminer/sql.inc.php index 6b5b86f9..83014769 100644 --- a/adminer/sql.inc.php +++ b/adminer/sql.inc.php @@ -175,7 +175,10 @@ if ($_POST) { } textarea("query", $q, 20); echo ($_POST ? "" : "\n"); -echo "

" . (ini_bool("file_uploads") ? lang('File upload') . ': (< ' . ini_get("upload_max_filesize") . 'B)' : lang('File uploads are disabled.')); // ignore post_max_size because it is for all form fields together and bytes computing would be necessary +echo "

" . (ini_bool("file_uploads") + ? lang('File upload') . ': (< ' . ini_get("upload_max_filesize") . 'B)' // ignore post_max_size because it is for all form fields together and bytes computing would be necessary + : lang('File uploads are disabled.') +); ?>