Do substitution.

This commit is contained in:
Chris 2013-09-13 11:46:20 +01:00
parent 2ae8e1431f
commit 34573de581

View File

@ -545,6 +545,7 @@ sub fix_variables {
my $email = $self->{settings}->{config}->{"Core:admin_email"}; my $email = $self->{settings}->{config}->{"Core:admin_email"};
$$textref =~ s/{V_\[scriptpath\]}/$self->{scriptpath}/g; $$textref =~ s/{V_\[scriptpath\]}/$self->{scriptpath}/g;
$$textref =~ s/{V_\[templatepath\]}/$self->{templatepath}/g; $$textref =~ s/{V_\[templatepath\]}/$self->{templatepath}/g;
$$textref =~ s/{V_\[templateurl\]}/$self->{templateurl}/g;
$$textref =~ s/{V_\[commonpath\]}/$self->{commonpath}/g; $$textref =~ s/{V_\[commonpath\]}/$self->{commonpath}/g;
$$textref =~ s/{V_\[sitename\]}/$self->{settings}->{config}->{site_name}/g; $$textref =~ s/{V_\[sitename\]}/$self->{settings}->{config}->{site_name}/g;
$$textref =~ s/{V_\[admin_email\]}/$email/g; $$textref =~ s/{V_\[admin_email\]}/$email/g;