diff --git a/db_operations.php b/db_operations.php
index d704398265..9c5ca8e0b4 100644
--- a/db_operations.php
+++ b/db_operations.php
@@ -220,7 +220,7 @@ if (!$is_information_schema) {
/**
* database comment
*/
- echo PMA_getHtmlForDatabaseComment();
+ echo PMA_getHtmlForDatabaseComment($db);
}
?>
@@ -231,7 +231,7 @@ if (!$is_information_schema) {
* rename database
*/
if ($db != 'mysql') {
- echo PMA_getHtmlForRenameDatabase();
+ echo PMA_getHtmlForRenameDatabase($db);
}
// Drop link if allowed
@@ -241,7 +241,7 @@ if (!$is_information_schema) {
&& ! $db_is_information_schema
&& (PMA_DRIZZLE || $db != 'mysql')
) {
- echo PMA_getHtmlForDropDatabaseLink();
+ echo PMA_getHtmlForDropDatabaseLink($db);
}
/**
* Copy database
diff --git a/libraries/db_operations.lib.php b/libraries/db_operations.lib.php
index e14921bcdc..ee3a0b6998 100644
--- a/libraries/db_operations.lib.php
+++ b/libraries/db_operations.lib.php
@@ -14,13 +14,15 @@ if (! defined('PHPMYADMIN')) {
/**
* Get HTML output for database comment
*
+ * @param $db database name
+ *
* @return string $html_output
*/
-function PMA_getHtmlForDatabaseComment()
+function PMA_getHtmlForDatabaseComment($db)
{
$html_output = '
'
. '