Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix inconsistent output from list-domains --simple-multiline and --multiline #717

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions list-domains.pl
Original file line number Diff line number Diff line change
Expand Up @@ -583,8 +583,8 @@ package virtual_server;
my $p = &domain_has_website($d);
my $showphp = !$d->{'alias'} && $p && $multi == 1;
if ($showphp) {
$p = &get_domain_php_mode($d);
print " PHP execution mode: $p\n";
$pm = &get_domain_php_mode($d);
print " PHP execution mode: $pm\n";
@modes = &supported_php_modes($d);
print " Possible PHP execution modes: ",
join(" ", @modes),"\n";
Expand All @@ -594,7 +594,7 @@ package virtual_server;
if ($d->{'fcgiwrap_port'} && $d->{'web'}) {
print " FCGIwrap port for CGIs: ",$d->{'fcgiwrap_port'},"\n";
}
if ($p eq "fpm") {
if ($pm eq "fpm") {
($ok, $port) = &get_domain_php_fpm_port($d);
if ($ok >= 0) {
$msg = $ok == 2 ? "File $port" :
Expand Down