Bugzilla – Attachment 6654 Details for
Bug 7331
Circulation.pl generates errors in the log
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to fix warning logs being printed unnecessarily
0001-bug-7331-fixed-error-in-C4-Dates-causing-unneeded-wa.patch (text/plain), 1.05 KB, created by
Duncan
on 2011-12-08 01:19:49 UTC
(
hide
)
Description:
Patch to fix warning logs being printed unnecessarily
Filename:
MIME Type:
Creator:
Duncan
Created:
2011-12-08 01:19:49 UTC
Size:
1.05 KB
patch
obsolete
>From 772f5269ca5b0cd7ef31527c68a14bdb45fa9e2d Mon Sep 17 00:00:00 2001 >From: Duncan Tyler <duncan@duncan-SoT.wgtn.cat-it.co.nz> >Date: Thu, 8 Dec 2011 14:11:43 +1300 >Subject: [PATCH] bug 7331 fixed error in C4::Dates causing unneeded warnings > >--- > C4/Dates.pm | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > >diff --git a/C4/Dates.pm b/C4/Dates.pm >index 8b29264..e61fc19 100644 >--- a/C4/Dates.pm >+++ b/C4/Dates.pm >@@ -167,7 +167,7 @@ sub init ($;$$) { > $self->{'dateformat'} = $dformat = ( scalar(@_) >= 2 ) ? $_[1] : _prefformat(); > ( $format_map{$dformat} ) or croak "Invalid date format '$dformat' from " . ( ( scalar(@_) >= 2 ) ? 'argument' : 'system preferences' ); > $self->{'dmy_arrayref'} = [ ( (@_) ? $self->dmy_map(shift) : localtime ) ]; >- if ($debug > 1) { warn "(during init) \@\$self->{'dmy_arrayref'}: " . join( ' ', @{ $self->{'dmy_arrayref'} } ) . "\n"; } >+ if ($debug && $debug > 1) { warn "(during init) \@\$self->{'dmy_arrayref'}: " . join( ' ', @{ $self->{'dmy_arrayref'} } ) . "\n"; } > return $self; > } > >-- >1.7.5.4 >
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 7331
:
6651
|
6654
|
6665