diff options
author | Gitea <gitea@fake.local> | 2020-01-16 19:39:03 +0000 |
---|---|---|
committer | Gitea <gitea@fake.local> | 2020-01-16 19:39:03 +0000 |
commit | 026405c92d3c207ba9ca0ac74b5318597320caf4 (patch) | |
tree | 67b30ada30daeb6579a336aeeada763d89835890 | |
parent | 88b079a22b99332cf1d5f11cf091e88bda74f763 (diff) |
script works in subdirectory now
-rwxr-xr-x | minimun | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -24,10 +24,10 @@ foreach $pair (@pairs) { my ($in, $out); $in = "\n"; -if ($ENV{'PATH_INFO'} eq '/award.pdf'){ +if (index($ENV{'PATH_INFO'},'award.pdf') != -1){ $in .= "\\award{$FORM{'committee'}}{$FORM{'country'}}{$FORM{'award'}}{$FORM{'school'}}"; } -elsif ($ENV{'PATH_INFO'} eq '/room.pdf'){ +elsif (index($ENV{'PATH_INFO'},'room.pdf') != -1){ $in .= "\\room{$FORM{'committee'}}"; } else{ |