use full qualified table name in success message (db.table instead if just table)

This commit is contained in:
Sebastian Mendel
2007-10-12 11:54:44 +00:00
parent eda10ae46a
commit d654b80d6d

View File

@@ -48,8 +48,10 @@ if (PMA_isValid($_REQUEST['new_name'])) {
} else { } else {
$message = PMA_Message::success('strCopyTableOK'); $message = PMA_Message::success('strCopyTableOK');
} }
$message->addParam(htmlspecialchars($table)); $old = PMA_backquote($db) . '.' . PMA_backquote($table);
$message->addParam(htmlspecialchars($_REQUEST['new_name'])); $message->addParam(htmlspecialchars($old));
$new = PMA_backquote($_REQUEST['target_db']) . '.' . PMA_backquote($_REQUEST['new_name']);
$message->addParam(htmlspecialchars($new));
/* Check: Work on new table or on old table? */ /* Check: Work on new table or on old table? */
if (isset($_REQUEST['submit_move']) || PMA_isValid($_REQUEST['switch_to_new'])) { if (isset($_REQUEST['submit_move']) || PMA_isValid($_REQUEST['switch_to_new'])) {