Fix #12984 : Show default collation when creating new DB (#13061)

Added a default value for database collation dropdown

Fix #12984 

Signed-off-by: Fenn-CS <fenn25.fn@gmail.com>
This commit is contained in:
F. E Noel Nfebe 2017-03-12 14:50:28 +01:00 committed by Deven Bansod
parent a87108c96f
commit 77b39264b0

View File

@ -18,7 +18,7 @@
<input type="text" name="new_db" value="<?= htmlspecialchars($GLOBALS['db_to_create']); ?>"
maxlength="64" class="textfield" id="text_create_db" required
placeholder="<?= __('Database name'); ?>" />
<?= PMA\libraries\Charsets::getCollationDropdownBox('db_collation', null, null, true); ?>
<?= PMA\libraries\Charsets::getCollationDropdownBox('db_collation', null, $GLOBALS['dbi']->getServerCollation(), true); ?>
<input type="submit" value="<?= __('Create'); ?>" id="buttonGo" />
</form>
<?php else: ?>