From db12a0688c39bf3e629171d3679578c7cb703cf9 Mon Sep 17 00:00:00 2001 From: iliajie Date: Mon, 19 Sep 2022 21:52:32 +0300 Subject: [PATCH] Fix variables access --- virtual_feature.pl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/virtual_feature.pl b/virtual_feature.pl index 8d1ac3b..8f88aa9 100644 --- a/virtual_feature.pl +++ b/virtual_feature.pl @@ -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 @@ -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'}; }