Ensure trailing / on jspath
This commit is contained in:
parent
d25efbefe8
commit
2ff5d614df
@ -360,6 +360,7 @@ sub set_template_dir {
|
||||
my $jsdir = "js";
|
||||
$jsdir .= "_".$self -> {"settings"} -> {"config"} -> {"jsdirid"} if($self -> {"settings"} -> {"config"} -> {"jsdirid"});
|
||||
$self -> {"jspath"} = path_join($self -> {"templatepath"}, $jsdir);
|
||||
$self -> {"jspath"} .= "/" unless($self -> {"jspath"} =~ m|/$|); # jspath must have trailing slash
|
||||
|
||||
# The URL...
|
||||
$self -> {"templateurl"} = path_join($self -> {"cgi"} -> url(-base => 1), $self -> {"templatepath"})."/"
|
||||
|
Loading…
x
Reference in New Issue
Block a user