Bugzilla – Attachment 122216 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.15 KB, created by
Jonathan Druart
on 2021-06-21 10:23:13 UTC
(
hide
)
Description:
Bug 28572: Replace missing occurrence in misc/admin/koha-preferences
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2021-06-21 10:23:13 UTC
Size:
1.15 KB
patch
obsolete
>From 501eac67e4bd4f1a60194fa4b7f3c0f8d4c75ac4 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 > >--- > 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 a2062ba57ff..fce288ead7e 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