Skip to content

Commit

Permalink
Fix for Issue #27
Browse files Browse the repository at this point in the history
Add a conditional check for the file 1100tags.txt.  If it doesn't exist in the user
defined data directory, then default to the Pgm_root/data directory.
  • Loading branch information
krkeegan authored and hollie committed Dec 22, 2012
1 parent 9af910d commit 0f93f8f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion web/bin/tagline.pl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@

# Authority: anyone

@ARGV = "$config_parms{data_dir}/remarks/1100tags.txt";
if (-e "$config_parms{data_dir}/remarks/1100tags.txt"){
@ARGV = "$config_parms{data_dir}/remarks/1100tags.txt";
}
else{
@ARGV = "$Pgm_Root/data/remarks/1100tags.txt";
}

my $tagline;
rand($.) < 1 && ($tagline=$_) while <>;
Expand Down

0 comments on commit 0f93f8f

Please sign in to comment.