Skip to content

Commit

Permalink
Fix to properly disable website virtualmin/virtualmin-gpl#631
Browse files Browse the repository at this point in the history
  • Loading branch information
iliajie committed Aug 29, 2023
1 parent 0a62cb6 commit 56d9a0a
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions virtual_feature.pl
Original file line number Diff line number Diff line change
Expand Up @@ -823,12 +823,8 @@ sub feature_disable
# Disable is done via default website page
my $def_tpl = &read_file_contents("$virtual_server::default_content_dir/index.html");
my %hashtmp = %$d;
$hashtmp{'TMPLTTITLE'} = $virtual_server::text{'deftmplt_website_disabled'};
$hashtmp{'TMPLTSLOGAN'} = $virtual_server::text{'deftmplt_disable_slog'};
if ($d->{'disabled_why'}) {
$hashtmp{'TMPLTCONTENT'} = $d->{'disabled_why'};
}
%hashtmp = &virtual_server::populate_default_index_page(%hashtmp);
%hashtmp = &virtual_server::populate_default_index_page($d, %hashtmp);
$def_tpl = &virtual_server::replace_default_index_page($d, $def_tpl);
$def_tpl = &virtual_server::substitute_virtualmin_template($def_tpl, \%hashtmp);
my $msg = $tmpl->{'disabled_web'} eq 'none' ?
$def_tpl :
Expand Down

0 comments on commit 56d9a0a

Please sign in to comment.