]> git.joonet.de Git - adminer.git/commitdiff
Use existing variable
authorJakub Vrana <jakub@vrana.cz>
Tue, 6 Feb 2018 10:57:02 +0000 (11:57 +0100)
committerJakub Vrana <jakub@vrana.cz>
Tue, 6 Feb 2018 10:57:02 +0000 (11:57 +0100)
plugins/file-upload.php

index 042bdb5a138e6f20e65d7da114e538dc1ca20ab8..806fd593f7c6176653ce3e3826d39c824e23197f 100644 (file)
@@ -24,7 +24,7 @@ class AdminerFileUpload {
 
        function editInput($table, $field, $attrs, $value) {
                if (preg_match('~(.*)_path$~', $field["field"])) {
-                       return "<input type='file' name='fields-$field[field]'>";
+                       return "<input type='file'$attrs>";
                }
        }