Bugzilla – Attachment 122218 Details for
Bug 28572
Replace C4::Debug with Koha::Logger->debug
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28572: Replace missing occurrence in misc/admin/koha-preferences
Bug-28572-Replace-missing-occurrence-in-miscadmink.patch (text/plain), 1.24 KB, created by
Marcel de Rooy
on 2021-06-21 11:32:12 UTC
(
hide
)
Description:
Bug 28572: Replace missing occurrence in misc/admin/koha-preferences
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2021-06-21 11:32:12 UTC
Size:
1.24 KB
patch
obsolete
>From 8c6656988e9c033c6c895cf3a0582efa52ab879f Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 21 Jun 2021 12:22:54 +0200 >Subject: [PATCH] Bug 28572: Replace missing occurrence in > misc/admin/koha-preferences >Content-Type: text/plain; charset=utf-8 > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > misc/admin/koha-preferences | 12 ++++-------- > 1 file changed, 4 insertions(+), 8 deletions(-) > >diff --git a/misc/admin/koha-preferences b/misc/admin/koha-preferences >index a2062ba57f..fce288ead7 100755 >--- a/misc/admin/koha-preferences >+++ b/misc/admin/koha-preferences >@@ -21,11 +21,13 @@ > use Modern::Perl; > use Koha::Script; > use C4::Context; >-use C4::Debug; > use C4::Log; > use Getopt::Long; > use Pod::Usage; > use YAML::XS; >+ >+use Koha::Logger; >+ > our %NOT_SET_PREFS = map { $_, 1 } qw( Version ); > > =head1 NAME >@@ -48,16 +50,10 @@ sub print_usage { > } > } > >-sub _debug { >- my ( $message ) = @_; >- >- print STDERR $message . "\n" if ( $C4::Debug::debug ); >-} >- > sub _set_preference { > my ( $preference, $value ) = @_; > >- _debug( "Setting $preference to $value" ); >+ Koha::Logger->get->debug($message); > > if ( $preference->{type} eq 'YesNo' > && $value ne '0' >-- >2.20.1
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 28572
:
122118
|
122147
|
122216
|
122217
| 122218 |
122290
|
122291
|
122303
|
122304