diff --git a/db_operations.php b/db_operations.php index 50f9160970..7d545cb5c4 100644 --- a/db_operations.php +++ b/db_operations.php @@ -430,46 +430,24 @@ if (!$is_information_schema) { echo PMA_getHtmlForRenameDatabase(); } -// Drop link if allowed -// Don't even try to drop information_schema. You won't be able to. Believe me. You won't. -// Don't allow to easily drop mysql database, RFE #1327514. -if (($is_superuser || $GLOBALS['cfg']['AllowUserDropDatabase']) - && ! $db_is_information_schema - && (PMA_DRIZZLE || $db != 'mysql') -) { - echo PMA_getHtmlForDropDatabaseLink(); -} -/** - * Copy database - */ -echo PMA_getHtmlForCopyDatabase(); + // Drop link if allowed + // Don't even try to drop information_schema. You won't be able to. Believe me. You won't. + // Don't allow to easily drop mysql database, RFE #1327514. + if (($is_superuser || $GLOBALS['cfg']['AllowUserDropDatabase']) + && ! $db_is_information_schema + && (PMA_DRIZZLE || $db != 'mysql') + ) { + echo PMA_getHtmlForDropDatabaseLink(); + } + /** + * Copy database + */ + echo PMA_getHtmlForCopyDatabase(); /** * Change database charset */ - echo '
' . "\n"; + echo PMA_getHtmlForChangeDatabaseCharset(); if ($num_tables > 0 && ! $cfgRelation['allworks'] diff --git a/libraries/db_operations.lib.php b/libraries/db_operations.lib.php index ca7332283c..922a7f2472 100644 --- a/libraries/db_operations.lib.php +++ b/libraries/db_operations.lib.php @@ -204,4 +204,42 @@ function PMA_getHtmlForCopyDatabase() return $html_output; } + +/** + * Get HTML snippet for change database charset + * + * @return string $html_output + */ +function PMA_getHtmlForChangeDatabaseCharset() +{ + $html_output = '' . "\n"; + + return $html_output; +} ?>