Use less noisy message and remove disable link on database statistics

This commit is contained in:
Dieter Adriaenssens
2010-12-08 20:21:51 +01:00
parent 2ca1d9ff46
commit e69bbb4ec1
2 changed files with 5 additions and 9 deletions

View File

@@ -126,6 +126,7 @@
- bug #3123433 [interface] Avoid double escaping of MySQL errors.
- bug #3119874 [interface] Show integers without decimals on status page.
- bug #3119882 [interface] Display query chart on demand.
- [interface] Use less noisy message and remove disable link on server charts and database statistics.
3.3.9.0 (not yet released)
- bug [doc] Fix references to MySQL doc

View File

@@ -251,20 +251,15 @@ if ($databases_count > 0) {
PMA_buttonOrImage('drop_selected_dbs', 'mult_submit', 'drop_selected_dbs', __('Drop'), 'b_deltbl.png');
}
echo '<ul><li id="li_switch_dbstats"><strong>' . "\n";
if (empty($dbstats)) {
echo '<ul><li id="li_switch_dbstats"><strong>' . "\n";
echo ' <a href="./server_databases.php?' . $url_query . '&amp;dbstats=1"'
.' title="' . __('Enable Statistics') . '">' . "\n"
.' ' . __('Enable Statistics');
} else {
echo ' <a href="./server_databases.php?' . $url_query . '"'
.' title="' . __('Disable Statistics') . '">' . "\n"
.' ' . __('Disable Statistics');
echo '</a></strong><br />' . "\n";
PMA_Message::notice(__('Note: Enabling the database statistics here might cause heavy traffic between the web server and the MySQL server.'))->display();
echo '</li>' . "\n" . '</ul>' . "\n";
}
echo '</a></strong><br />' . "\n";
PMA_Message::warning(__('Note: Enabling the database statistics here might cause heavy traffic between the web server and the MySQL server.'))->display();
echo '</li>' . "\n"
.'</ul>' . "\n";
echo '</form>';
} else {
echo __('No databases');