Skip to content

Commit

Permalink
Fix variables access
Browse files Browse the repository at this point in the history
  • Loading branch information
iliajie committed Sep 19, 2022
1 parent ccfe3fd commit db12a06
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions virtual_feature.pl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
use warnings;
use Time::Local;
require 'virtualmin-nginx-lib.pl';
our (%text, %config, $module_name, %access, $default_content_dir);
our (%text, %config, $module_name, %access);

# feature_name()
# Returns a short name for this feature
Expand Down Expand Up @@ -804,10 +804,10 @@ sub feature_disable

if ($tmpl->{'disabled_url'} eq 'none') {
# Disable is done via default website page
my $def_tpl = &read_file_contents("$default_content_dir/index.html");
my $def_tpl = &read_file_contents("$virtual_server::default_content_dir/index.html");
my %hashtmp = %$d;
$hashtmp{'TMPLTTITLE'} = $text{'deftmplt_website_disabled'};
$hashtmp{'TMPLTSLOGAN'} = $text{'deftmplt_disable_slog'};
$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'};
}
Expand Down

0 comments on commit db12a06

Please sign in to comment.