Bugzilla – Attachment 12404 Details for
Bug 8687
Improvements in overdue_notices.pl
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug-8667-cleaned-up-perlcritic-complaints-aligned-usage with POD doc
0002-Bug-8667-cleaned-up-perlcritic-complaints-aligned-us.patch (text/plain), 1.97 KB, created by
wajasu
on 2012-09-20 21:46:43 UTC
(
hide
)
Description:
Bug-8667-cleaned-up-perlcritic-complaints-aligned-usage with POD doc
Filename:
MIME Type:
Creator:
wajasu
Created:
2012-09-20 21:46:43 UTC
Size:
1.97 KB
patch
obsolete
>From f6362041d163b20efec36328d83d21fb4522f025 Mon Sep 17 00:00:00 2001 >From: wajasu <matted-34813@mypacks.net> >Date: Thu, 20 Sep 2012 16:38:36 -0500 >Subject: [PATCH 2/2] Bug-8667 cleaned up perlcritic complaints, aligned usage > with POD doc > >--- > misc/cronjobs/overdue_notices.pl | 13 +++---------- > 1 file changed, 3 insertions(+), 10 deletions(-) > >diff --git a/misc/cronjobs/overdue_notices.pl b/misc/cronjobs/overdue_notices.pl >index 273b401..164c9fb 100755 >--- a/misc/cronjobs/overdue_notices.pl >+++ b/misc/cronjobs/overdue_notices.pl >@@ -21,14 +21,6 @@ > use strict; > use warnings; > >-BEGIN { >- >- # find Koha's Perl modules >- # test carefully before changing this >- use FindBin; >- eval { require "$FindBin::Bin/../kohalib.pl" }; >-} >- > use Getopt::Long; > use Pod::Usage; > use Text::CSV_XS; >@@ -56,7 +48,7 @@ overdue_notices.pl [ -n ] [ -library <branchcode> ] [ -library <branchcode>...] > -max <days> maximum days overdue to deal with > -library <branchname> only deal with overdues from this library (repeatable : several libraries can be given) > -csv <filename> populate CSV file >- -html <filename> Output html to file >+ -html <filedir> Output html to file directory or to STDOUT if none specified > -itemscontent <list of fields> item information in templates > -borcat <categorycode> category code that must be included > -borcatout <categorycode> category code that must be excluded >@@ -364,7 +356,8 @@ if ( defined $htmlfilename ) { > $html_fh = *STDOUT; > } else { > my $today = DateTime->now(time_zone => C4::Context->tz ); >- open $html_fh, ">:utf8",File::Spec->catdir ($htmlfilename,"notices-".$today->ymd().".html"); >+ my $htmlfile = File::Spec->catdir ($htmlfilename,"notices-".$today->ymd().".html"); >+ open $html_fh, ">:encoding(UTF-8)", $htmlfile or die "unable to open $htmlfile; $! (Be sure to create the directory)\n"; > } > > print $html_fh "<html>\n"; >-- >1.7.12 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 8687
:
11826
|
11829
|
12404
|
12711
|
12712
|
12713
|
17601
|
17941
|
23150
|
23229
|
30403
|
30451
|
30530
|
30538
|
30873
|
30874
|
30875