diff --git a/db_operations.php b/db_operations.php
index 535ee3104..c17d372ff 100644
--- a/db_operations.php
+++ b/db_operations.php
@@ -406,7 +406,7 @@ echo __('Remove database');
'goto' => 'main.php',
'reload' => '1',
'purge' => '1',
- 'zero_rows' => sprintf(__('Database %s has been dropped.'), htmlspecialchars(PMA_backquote($db))),
+ 'message_to_show' => sprintf(__('Database %s has been dropped.'), htmlspecialchars(PMA_backquote($db))),
'db' => NULL,
);
?>
diff --git a/db_qbe.php b/db_qbe.php
index 2475065fc..a8aeb42ee 100644
--- a/db_qbe.php
+++ b/db_qbe.php
@@ -22,7 +22,7 @@ $cfgRelation = PMA_getRelationsParam();
*/
if (isset($_REQUEST['submit_sql']) && ! empty($sql_query)) {
$goto = 'db_sql.php';
- $zero_rows = htmlspecialchars(__('Your SQL query has been executed successfully'));
+ $message_to_show = htmlspecialchars(__('Your SQL query has been executed successfully'));
require './sql.php';
exit;
} else {
diff --git a/db_structure.php b/db_structure.php
index dafdcdc66..f16654778 100644
--- a/db_structure.php
+++ b/db_structure.php
@@ -298,7 +298,7 @@ foreach ($tables as $keyname => $each_table) {
$empty_table = '' . $titles['Empty'] . '';
} else {
@@ -386,7 +386,7 @@ foreach ($tables as $keyname => $each_table) {
|
getName() == 'PRIMARY') {
$this_params['sql_query'] = 'ALTER TABLE ' . PMA_backquote($table) . ' DROP PRIMARY KEY';
- $this_params['zero_rows'] = __('The primary key has been dropped');
+ $this_params['message_to_show'] = __('The primary key has been dropped');
$js_msg = PMA_jsFormat('ALTER TABLE ' . $table . ' DROP PRIMARY KEY');
} else {
$this_params['sql_query'] = 'ALTER TABLE ' . PMA_backquote($table) . ' DROP INDEX ' . PMA_backquote($index->getName());
- $this_params['zero_rows'] = sprintf(__('Index %s has been dropped'), $index->getName());
+ $this_params['message_to_show'] = sprintf(__('Index %s has been dropped'), $index->getName());
$js_msg = PMA_jsFormat('ALTER TABLE ' . $table . ' DROP INDEX ' . $index->getName());
}
diff --git a/libraries/display_tbl.lib.php b/libraries/display_tbl.lib.php
index bb16bbf7f..a57c9098f 100644
--- a/libraries/display_tbl.lib.php
+++ b/libraries/display_tbl.lib.php
@@ -1143,7 +1143,7 @@ function PMA_displayTableBody(&$dt_result, &$is_display, $map, $analyzed_sql) {
'db' => $db,
'table' => $table,
'sql_query' => $url_sql_query,
- 'zero_rows' => __('The row has been deleted'),
+ 'message_to_show' => __('The row has been deleted'),
'goto' => (empty($goto) ? 'tbl_sql.php' : $goto),
);
$lnk_goto = 'sql.php' . PMA_generate_common_url($_url_params, 'text');
@@ -1155,7 +1155,7 @@ function PMA_displayTableBody(&$dt_result, &$is_display, $map, $analyzed_sql) {
'db' => $db,
'table' => $table,
'sql_query' => $del_query,
- 'zero_rows' => __('The row has been deleted'),
+ 'message_to_show' => __('The row has been deleted'),
'goto' => $lnk_goto,
);
$del_url = 'sql.php' . PMA_generate_common_url($_url_params);
diff --git a/libraries/sql_query_form.lib.php b/libraries/sql_query_form.lib.php
index 8ac7c1c25..7dfe8c550 100644
--- a/libraries/sql_query_form.lib.php
+++ b/libraries/sql_query_form.lib.php
@@ -132,7 +132,7 @@ function PMA_sqlQueryForm($query = true, $display_tab = false, $delimiter = ';')
.'' . "\n"
.'' . "\n"
- .'' . "\n"
.'' . "\n";
diff --git a/sql.php b/sql.php
index 1a2853f4f..827737463 100644
--- a/sql.php
+++ b/sql.php
@@ -242,7 +242,7 @@ if ($do_confirm) {
.PMA_generate_common_hidden_inputs($db, $table);
?>
-
+
@@ -577,11 +577,11 @@ if (0 == $num_rows || $is_affected) {
// The form generated by sql_query_form.lib.php
// and db_sql.php has many submit buttons
// on the same form, and some confusion arises from the
- // fact that $zero_rows is sent for every case.
- // The $zero_rows containing a success message and sent with
+ // fact that $message_to_show is sent for every case.
+ // The $message_to_show containing a success message and sent with
// the form should not have priority over errors
- } elseif (!empty($zero_rows) && !$is_select) {
- $message = PMA_Message::rawSuccess(htmlspecialchars($zero_rows));
+ } elseif (!empty($message_to_show) && !$is_select) {
+ $message = PMA_Message::rawSuccess(htmlspecialchars($message_to_show));
} elseif (!empty($GLOBALS['show_as_php'])) {
$message = PMA_Message::success(__('Showing as PHP code'));
} elseif (isset($GLOBALS['show_as_php'])) {
diff --git a/tbl_operations.php b/tbl_operations.php
index 666f6f331..d5fd6db31 100644
--- a/tbl_operations.php
+++ b/tbl_operations.php
@@ -202,7 +202,7 @@ unset($reread_info);
*/
require_once './libraries/tbl_links.inc.php';
-if (isset($result) && empty($zero_rows)) {
+if (isset($result) && empty($message_to_show)) {
// set to success by default, because result set could be empty
// (for example, a table rename)
$_type = 'success';
@@ -624,7 +624,7 @@ if ($is_myisam_or_maria || $is_innodb || $is_berkeleydb) {
$this_url_params = array_merge($url_params,
array(
'sql_query' => 'FLUSH TABLE ' . PMA_backquote($GLOBALS['table']),
- 'zero_rows' => sprintf(__('Table %s has been flushed'),
+ 'message_to_show' => sprintf(__('Table %s has been flushed'),
htmlspecialchars($GLOBALS['table'])),
'reload' => 1,
));
@@ -650,7 +650,7 @@ if (! $tbl_is_view && ! (isset($db_is_information_schema) && $db_is_information_
'sql_query' => $this_sql_query,
'goto' => 'tbl_structure.php',
'reload' => '1',
- 'zero_rows' => sprintf(__('Table %s has been emptied'), htmlspecialchars($table)),
+ 'message_to_show' => sprintf(__('Table %s has been emptied'), htmlspecialchars($table)),
));
?>
@@ -667,7 +667,7 @@ if (! (isset($db_is_information_schema) && $db_is_information_schema)) {
'goto' => 'db_operations.php',
'reload' => '1',
'purge' => '1',
- 'zero_rows' => sprintf(($tbl_is_view ? __('View %s has been dropped') : __('Table %s has been dropped')), htmlspecialchars($table)),
+ 'message_to_show' => sprintf(($tbl_is_view ? __('View %s has been dropped') : __('Table %s has been dropped')), htmlspecialchars($table)),
// table name is needed to avoid running
// PMA_relationsCleanupDatabase() on the whole db later
'table' => $GLOBALS['table'],
diff --git a/tbl_structure.php b/tbl_structure.php
index 812ff502f..7c59d984f 100644
--- a/tbl_structure.php
+++ b/tbl_structure.php
@@ -393,7 +393,7 @@ while ($row = PMA_DBI_fetch_assoc($fields_rs)) {
-
+
|
@@ -404,7 +404,7 @@ while ($row = PMA_DBI_fetch_assoc($fields_rs)) {
} else {
echo "\n";
?>
-
+
-
+
-
+
|
-
+
|
@@ -479,7 +479,7 @@ while ($row = PMA_DBI_fetch_assoc($fields_rs)) {
-
+
-
+
-
+
-
+