aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitea <gitea@fake.local>2020-01-16 19:39:03 +0000
committerGitea <gitea@fake.local>2020-01-16 19:39:03 +0000
commit026405c92d3c207ba9ca0ac74b5318597320caf4 (patch)
tree67b30ada30daeb6579a336aeeada763d89835890
parent88b079a22b99332cf1d5f11cf091e88bda74f763 (diff)
script works in subdirectory now
-rwxr-xr-xminimun4
1 files changed, 2 insertions, 2 deletions
diff --git a/minimun b/minimun
index 3070174..c779069 100755
--- a/minimun
+++ b/minimun
@@ -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{