mirror of
https://github.com/vrana/adminer.git
synced 2025-08-08 15:47:00 +02:00
Fix collations display
This commit is contained in:
@@ -57,10 +57,7 @@ if ($_POST) {
|
||||
echo ($_POST["add_x"] || strpos($name, "\n")
|
||||
? '<textarea name="name" rows="10" cols="40">' . h($name) . '</textarea><br>'
|
||||
: '<input name="name" value="' . h($name) . '" maxlength="64">'
|
||||
) . "\n";
|
||||
if ($collations) {
|
||||
html_select("collation", array("" => "(" . lang('collation') . ")") + $collations, $collate);
|
||||
}
|
||||
) . "\n" . ($collations ? html_select("collation", array("" => "(" . lang('collation') . ")") + $collations, $collate) : "");
|
||||
?>
|
||||
<input type="hidden" name="token" value="<?php echo $token; ?>">
|
||||
<input type="submit" value="<?php echo lang('Save'); ?>">
|
||||
|
@@ -514,6 +514,7 @@ if (!defined("DRIVER")) {
|
||||
* @return string
|
||||
*/
|
||||
function create_database($db, $collation) {
|
||||
global $connection;
|
||||
set_session("databases", null);
|
||||
return queries("CREATE DATABASE " . idf_escape($db) . ($collation ? " COLLATE " . $connection->quote($collation) : ""));
|
||||
}
|
||||
|
Reference in New Issue
Block a user