diff --git a/libraries/common.lib.php b/libraries/common.lib.php index 63987661b..65fc5c3c6 100644 --- a/libraries/common.lib.php +++ b/libraries/common.lib.php @@ -2729,7 +2729,7 @@ function PMA_getTitleForTarget($target) { function PMA_js_mootools_domready($code, $print=true) { $out = ''; - $out .= ''."\n"; diff --git a/libraries/replication_gui.lib.php b/libraries/replication_gui.lib.php index e1115fe21..d460e2e27 100644 --- a/libraries/replication_gui.lib.php +++ b/libraries/replication_gui.lib.php @@ -11,6 +11,7 @@ if (! defined('PHPMYADMIN')) { $jscode['master_replication'] = 'divShowHideFunc(\'master_status_href\', \'replication_master_section\');'."\n"; +// Add JS events to generate example my.cnf config lines $jscode['configure_master'] = 'var c_output = "";'."\n". 'var c_text = "server-id='.$serverid.'
log-bin=mysql-bin
log-error=mysql-bin.err
";'."\n". @@ -179,9 +180,8 @@ function PMA_replication_print_status_table ($type, $hidden = false, $title = tr && ${"{$type}_variables_alerts"}[$variable] == ${"server_{$type}_replication"}[0][$variable] ) { echo ''."\n"; - } - if (isset(${"{$type}_variables_oks"}[$variable]) + } elseif (isset(${"{$type}_variables_oks"}[$variable]) && ${"{$type}_variables_oks"}[$variable] == ${"server_{$type}_replication"}[0][$variable] ) { echo ''."\n"; diff --git a/server_replication.php b/server_replication.php index a27d014d0..01cddecaa 100644 --- a/server_replication.php +++ b/server_replication.php @@ -194,7 +194,7 @@ if ($server_master_status) { echo ''. $GLOBALS['strReplicationMaster'] .''."\n"; echo $GLOBALS['strReplicationConfiguredMaster']."\n"; echo ''."\n"; @@ -515,11 +517,11 @@ if (!isset($GLOBALS['repl_clear_scr'])) { echo sprintf($GLOBALS['strReplicationSlaveNotConfigured'], PMA_generate_common_url($_url_params))."\n"; } + echo ''."\n"; echo ''."\n"; } if (isset($GLOBALS['sl_configure'])) { PMA_replication_gui_changemaster("slave_changemaster"); } -echo ''."\n"; require_once './libraries/footer.inc.php'; ?>