Change order to show info in 'Tactical server information' about data server

(cherry picked from commit f1f1e7ba94)
This commit is contained in:
m-lopez-f 2015-01-30 10:07:16 +01:00
parent 8f2c69af06
commit 89faf1f7f5
1 changed files with 8 additions and 2 deletions

View File

@ -83,12 +83,18 @@ foreach ($servers as $server) {
// Type
if ($server['type'] == 'data'){
$data[2] = '<span style="white-space:nowrap;">'.$server["img"].'</span> (<span style="font-size:8px;">' . $server["version"]. '</span>)';
$data[2] = '<span style="white-space:nowrap;">'.$server["img"];
if ($server["master"] == 1){
$data[2] .= ui_print_help_tip (__("This is a master server"), true). '</span> <span style="font-size:8px;"> v' . $server["version"]. '</span>';
}
else{
$data[2] .= '</span> (<span style="font-size:8px;"> v' . $server["version"]. '</span>)';
}
}
else{
$data[2] = '<span style="white-space:nowrap;">'.$server["img"].'</span> ('.ucfirst($server["type"]).")";
}
if ($server["master"] == 1)
if ($server["master"] == 1 and $server['type'] != 'data')
$data[2] .= ui_print_help_tip (__("This is a master server"), true);
switch ($server['type']) {