1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-05 22:27:24 +02:00

Add helper for <input type=hidden>

This commit is contained in:
Jakub Vrana
2025-03-18 17:15:10 +01:00
parent 9cfea02e19
commit bc9de24d77
13 changed files with 34 additions and 25 deletions

View File

@@ -307,7 +307,7 @@ if ($vendor) {
}
}
if ($project != "editor" && count($drivers) == 1) {
$file = str_replace('html_select("auth[driver]", $drivers, DRIVER, "loginDriver(this);")', "\"<input type='hidden' name='auth[driver]' value='" . ($vendor == "mysql" ? "server" : $vendor) . "'>" . reset($drivers) . "\"", $file, $count);
$file = str_replace('html_select("auth[driver]", $drivers, DRIVER, "loginDriver(this);")', 'input_hidden("auth[driver]", "' . ($vendor == "mysql" ? "server" : $vendor) . '") . "' . reset($drivers) . '"', $file, $count);
if (!$count) {
echo "auth[driver] form field not found\n";
}