Skip to content

Commit

Permalink
Fix to call correct sub name
Browse files Browse the repository at this point in the history
  • Loading branch information
iliajie committed Jun 14, 2024
1 parent a6e1d1a commit d8e441c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions virtual_feature.pl
Original file line number Diff line number Diff line change
Expand Up @@ -1311,14 +1311,14 @@ sub feature_save_web_php_mode
],
};
&save_directive($server, [ ], [ $loc ]);
&flush_all_config_file_lines();
&flush_config_file_lines();
&unlock_file($server->{'file'});
}
&lock_file($loc->{'file'});
&save_directive($loc, "fastcgi_pass",
$port =~ /^\d+$/ ? [ "127.0.0.1:".$port ]
: [ "unix:".$port ]);
&flush_all_config_file_lines();
&flush_config_file_lines();
&unlock_file($loc->{'file'});
&virtual_server::register_post_action(\&print_apply_nginx);
}
Expand All @@ -1340,7 +1340,7 @@ sub feature_save_web_php_mode
],
};
&save_directive($server, [ $loc ], [ $locdeftype ]);
&flush_all_config_file_lines();
&flush_config_file_lines();
&unlock_file($server->{'file'});
&virtual_server::register_post_action(\&print_apply_nginx);
}
Expand Down Expand Up @@ -3341,7 +3341,7 @@ sub feature_web_save_domain_cgi_mode
'words' => [ @$p ] });
}
&save_directive($server, [ ], [ $cloc ]);
&flush_all_config_file_lines();
&flush_config_file_lines();
&virtual_server::register_post_action(\&print_apply_nginx);
}
elsif ($mode eq '' && $d->{'nginx_fcgiwrap_port'}) {
Expand All @@ -3353,7 +3353,7 @@ sub feature_web_save_domain_cgi_mode
&find("location", $server);
if ($cgi) {
&save_directive($server, [ $cgi ], [ ]);
&flush_all_config_file_lines();
&flush_config_file_lines();
&virtual_server::register_post_action(\&print_apply_nginx);
}
}
Expand Down

2 comments on commit d8e441c

@jcameron
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@iliajie
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't mention it, Jamie!

Please sign in to comment.