diff --git a/server_status.php b/server_status.php index a4796dad3..3ab8a49a2 100644 --- a/server_status.php +++ b/server_status.php @@ -283,7 +283,7 @@ if ($server_master_status) { if ($server_slave_status) { $links['repl'][__('Show slave status')] = '#replication_slave'; } - + $links['repl']['doc'] = 'replication'; $links['qcache'][__('Flush query cache')] @@ -354,19 +354,17 @@ echo sprintf(__('This MySQL server has been running for %s. It started up on %s.
' . $type . ' '; - } +if ($server_master_status || $server_slave_status) { + echo ''; + if ($server_master_status && $server_slave_status) { + echo __('This MySQL server works as master and slave in replication process.'); + } elseif ($server_master_status) { + echo __('This MySQL server works as master in replication process.'); + } elseif ($server_slave_status) { + echo __('This MySQL server works as slave in replication process.'); } - echo sprintf('
' . __('This MySQL server works as %s in replication process. For further information about replication status on the server, please visit the replication section.') . '
', $replicationOut); + echo __('For further information about replication status on the server, please visit the replication section.'); + echo ''; } ?> @@ -712,7 +710,7 @@ if (! empty($section['title'])) { } unset($section_name, $section, $sections, $server_status, $odd_row, $alerts); ?> - +