Skip to content

Commit

Permalink
Modified to use dirspec only
Browse files Browse the repository at this point in the history
This commit modifies overdue_notices so that the -html parameter
only requires a directory specification.
  • Loading branch information
J. David Bavousett committed Apr 13, 2010
1 parent 8ca8dfd commit 72bd29b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion misc/cronjobs/overdue_notices.pl
Expand Up @@ -316,7 +316,8 @@ =head1 SEE ALSO
if ( $htmlfilename eq '' ) {
$html_fh = *STDOUT;
} else {
open $html_fh, ">", $htmlfilename or die "unable to open $htmlfilename: $!";
my $today = C4::Dates->new();
open $html_fh, ">",File::Spec->catdir ($htmlfilename,"notices-".$today->output('iso').".html");
}

print $html_fh "<html>\n";
Expand Down

0 comments on commit 72bd29b

Please sign in to comment.