Skip to content

Commit

Permalink
Merge pull request #17517 from aidvu/patch-2
Browse files Browse the repository at this point in the history
Revert to old behavior for `ShowServerInfo`
  • Loading branch information
MauricioFauth committed Jun 6, 2022
2 parents be73574 + c6bb867 commit fcea0f3
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions libraries/classes/Controllers/HomeController.php
Expand Up @@ -143,20 +143,16 @@ public function __invoke(): void
}

$databaseServer = [];
if ($server > 0) {
if ($server > 0 && $cfg['ShowServerInfo']) {
$hostInfo = '';
if (! empty($cfg['Server']['verbose'])) {
$hostInfo .= $cfg['Server']['verbose'];
if ($cfg['ShowServerInfo']) {
$hostInfo .= ' (';
}
$hostInfo .= ' (';
}

if ($cfg['ShowServerInfo'] || empty($cfg['Server']['verbose'])) {
$hostInfo .= $this->dbi->getHostInfo();
}
$hostInfo .= $this->dbi->getHostInfo();

if (! empty($cfg['Server']['verbose']) && $cfg['ShowServerInfo']) {
if (! empty($cfg['Server']['verbose'])) {
$hostInfo .= ')';
}

Expand Down

0 comments on commit fcea0f3

Please sign in to comment.