';
if ($title) {
- echo '
' . ${"strReplicationStatus_{$type}"} . '
';
+ if ($type == 'master') {
+ echo '
' . __('Master status') . '
';
+ } else {
+ echo '
' . __('Slave status') . '
';
+ }
} else {
echo '
';
}
@@ -123,19 +127,19 @@ function PMA_replication_print_status_table($type, $hidden = false, $title = tru
// TODO change to regexp or something, to allow for negative match
- if (isset(${"{$type}_variables_alerts"}[$variable])
+ if (isset(${"{$type}_variables_alerts"}[$variable])
&& ${"{$type}_variables_alerts"}[$variable] == ${"server_{$type}_replication"}[0][$variable]
) {
echo '
';
- } elseif (isset(${"{$type}_variables_oks"}[$variable])
+ } elseif (isset(${"{$type}_variables_oks"}[$variable])
&& ${"{$type}_variables_oks"}[$variable] == ${"server_{$type}_replication"}[0][$variable]
) {
echo '';
} else {
echo '';
}
- echo ${"server_{$type}_replication"}[0][$variable];
+ echo ${"server_{$type}_replication"}[0][$variable];
echo '';
echo ' ';
@@ -159,7 +163,7 @@ function PMA_replication_print_status_table($type, $hidden = false, $title = tru
function PMA_replication_print_slaves_table($hidden = false) {
// Fetch data
- $data = PMA_DBI_fetch_result('SHOW SLAVE HOSTS', null, null);
+ $data = PMA_DBI_fetch_result('SHOW SLAVE HOSTS', null, null);
echo '
';
echo ' ';