projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
made a typo applying patch from pbowen
[freeside.git]
/
htetc
/
global.asa
diff --git
a/htetc/global.asa
b/htetc/global.asa
index
612f6f4
..
94a1030
100644
(file)
--- a/
htetc/global.asa
+++ b/
htetc/global.asa
@@
-206,9
+206,16
@@
sub sprintAutoProfile {
}
sub include {
}
sub include {
- ( my $file = shift ) =~ s(^/)(%%%FREESIDE_DOCUMENT_ROOT%%%/);
+ my $file = shift;
+ my $shift = 0;
+ if ( $file =~ m(^([^/].*)/[^/]+) ) {
+ unshift @{$Response->{asp}{includes_dir}}, "./$1";
+ $shift = 1;
+ }
+ $file =~ s(^/)(%%%FREESIDE_DOCUMENT_ROOT%%%/);
#broken in 5.005# ${$Response->TrapInclude($file, @_)};
my $ref = $Response->TrapInclude($file, @_);
#broken in 5.005# ${$Response->TrapInclude($file, @_)};
my $ref = $Response->TrapInclude($file, @_);
+ shift @{$Response->{asp}{includes_dir}} if $shift;
$$ref;
}
$$ref;
}