]> git.joonet.de Git - adminer.git/commitdiff
Clarify that global import supports only SQL
authorJakub Vrana <jakub@vrana.cz>
Sun, 15 Jun 2014 10:06:01 +0000 (12:06 +0200)
committerJakub Vrana <jakub@vrana.cz>
Sun, 15 Jun 2014 16:43:45 +0000 (18:43 +0200)
adminer/sql.inc.php

index 1158ceaab8370a715de70077466d191411b8e1e2..7f2e469503067436b2713eca28ac3d8b42de8be2 100644 (file)
@@ -203,10 +203,9 @@ if (!isset($_GET["import"])) {
 } else {
        echo "<fieldset><legend>" . lang('File upload') . "</legend><div>";
        echo (ini_bool("file_uploads")
-               ? '<input type="file" name="sql_file[]" multiple> (&lt; ' . ini_get("upload_max_filesize") . 'B)' // ignore post_max_size because it is for all form fields together and bytes computing would be necessary
+               ? "SQL (&lt; " . ini_get("upload_max_filesize") . "B): <input type='file' name='sql_file[]' multiple>\n$execute" // ignore post_max_size because it is for all form fields together and bytes computing would be necessary
                : lang('File uploads are disabled.')
        );
-       echo "\n$execute";
        echo "</div></fieldset>\n";
        echo "<fieldset><legend>" . lang('From server') . "</legend><div>";
        echo lang('Webserver file %s', "<code>adminer.sql" . (extension_loaded("zlib") ? "[.gz]" : "") . "</code>");