From c3d2d0fed4a1d34739d9d999ffaccff4ecb59936 Mon Sep 17 00:00:00 2001 From: ninadsp Date: Wed, 23 Jun 2010 10:50:54 +0530 Subject: [PATCH] Return the new name of the database in a rename, or the name of the copied database, so that we can switch to the database if the user wants to. --- db_operations.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/db_operations.php b/db_operations.php index bc0ca3e71..9128def0a 100755 --- a/db_operations.php +++ b/db_operations.php @@ -266,7 +266,8 @@ if (strlen($db) && (! empty($db_rename) || ! empty($db_copy))) { } if( $GLOBALS['is_ajax_request'] == true) { - PMA_ajaxResponse($message, $message->isSuccess()); + $extra_data['newname'] = $newname; + PMA_ajaxResponse($message, $message->isSuccess(), $extra_data); }; }