diff --git a/db_operations.php b/db_operations.php index 6087cdc92..beba6c8e6 100755 --- a/db_operations.php +++ b/db_operations.php @@ -267,7 +267,7 @@ if (strlen($db) && (! empty($db_rename) || ! empty($db_copy))) { if( $GLOBALS['is_ajax_request'] == true) { $extra_data['newname'] = $newname; - $extra_data['sqlquery'] = PMA_showMessage(NULL, $sql_query); + $extra_data['sql_query'] = PMA_showMessage(NULL, $sql_query); PMA_ajaxResponse($message, $message->isSuccess(), $extra_data); }; } diff --git a/js/db_operations.js b/js/db_operations.js index 77bdcc061..0ce381373 100644 --- a/js/db_operations.js +++ b/js/db_operations.js @@ -38,7 +38,7 @@ $(document).ready(function() { PMA_ajaxShowMessage(data.message); window.parent.db = data.newname; - $("#topmenucontainer").after(data.sqlquery); + $("#topmenucontainer").after(data.sql_query); $("" + PMA_messages['strReloadDatabase'] + "?").dialog({ buttons: button_options