use PMA_sendHeaderLocation
This commit is contained in:
@@ -2,7 +2,6 @@
|
|||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
// vim: expandtab sw=4 ts=4 sts=4:
|
// vim: expandtab sw=4 ts=4 sts=4:
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Ensure the database and the table exist (else move to the "parent" script)
|
* Ensure the database and the table exist (else move to the "parent" script)
|
||||||
* and display headers
|
* and display headers
|
||||||
@@ -14,7 +13,7 @@ if (!isset($is_db) || !$is_db) {
|
|||||||
}
|
}
|
||||||
if (empty($db) || !$is_db) {
|
if (empty($db) || !$is_db) {
|
||||||
if (!isset($is_transformation_wrapper)) {
|
if (!isset($is_transformation_wrapper)) {
|
||||||
header('Location: ' . $cfg['PmaAbsoluteUri'] . 'main.php?' . PMA_generate_common_url('', '', '&') . (isset($message) ? '&message=' . urlencode($message) : '') . '&reload=1');
|
PMA_sendHeaderLocation($cfg['PmaAbsoluteUri'] . 'main.php?' . PMA_generate_common_url('', '', '&') . (isset($message) ? '&message=' . urlencode($message) : '') . '&reload=1');
|
||||||
}
|
}
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
@@ -27,7 +26,7 @@ if (!isset($is_table) || !$is_table) {
|
|||||||
if (empty($table)
|
if (empty($table)
|
||||||
|| !($is_table && @PMA_DBI_num_rows($is_table))) {
|
|| !($is_table && @PMA_DBI_num_rows($is_table))) {
|
||||||
if (!isset($is_transformation_wrapper)) {
|
if (!isset($is_transformation_wrapper)) {
|
||||||
header('Location: ' . $cfg['PmaAbsoluteUri'] . 'db_details.php?' . PMA_generate_common_url($db, '', '&') . (isset($message) ? '&message=' . urlencode($message) : '') . '&reload=1');
|
PMA_sendHeaderLocation($cfg['PmaAbsoluteUri'] . 'db_details.php?' . PMA_generate_common_url($db, '', '&') . (isset($message) ? '&message=' . urlencode($message) : '') . '&reload=1');
|
||||||
}
|
}
|
||||||
exit;
|
exit;
|
||||||
} else if (isset($is_table)) {
|
} else if (isset($is_table)) {
|
||||||
|
Reference in New Issue
Block a user