Bugzilla – Attachment 164948 Details for
Bug 35681
Add support for colored messages in the output of updatedatabase
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 35681: Use Koha::Installer::Output in template
Bug-35681-Use-KohaInstallerOutput-in-template.patch (text/plain), 1.38 KB, created by
Tomás Cohen Arazi (tcohen)
on 2024-04-16 14:24:42 UTC
(
hide
)
Description:
Bug 35681: Use Koha::Installer::Output in template
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2024-04-16 14:24:42 UTC
Size:
1.38 KB
patch
obsolete
>From ff7fc4c14bde07522efd56b6cebe4097bc110b29 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Tue, 16 Apr 2024 12:22:42 +0100 >Subject: [PATCH] Bug 35681: Use Koha::Installer::Output in template > >--- > installer/data/mysql/atomicupdate/skeleton.pl | 10 +++++----- > 1 file changed, 5 insertions(+), 5 deletions(-) > >diff --git a/installer/data/mysql/atomicupdate/skeleton.pl b/installer/data/mysql/atomicupdate/skeleton.pl >index 685a0357fcb..4838ae1a627 100755 >--- a/installer/data/mysql/atomicupdate/skeleton.pl >+++ b/installer/data/mysql/atomicupdate/skeleton.pl >@@ -1,5 +1,5 @@ > use Modern::Perl; >-use Term::ANSIColor; >+use Koha::Installer::Output qw(say_warning say_failure say_success say_info); > > return { > bug_number => "BUG_NUMBER", >@@ -31,9 +31,9 @@ return { > say $out "Added 'XXX' HTML customization"; > > # Other information >- say $out colored("Use red for danger/failure", 'red'); >- say $out colored("Use green for success", 'green'); >- say $out colored("Use yellow for warning/a call to action", 'yellow'); >- say $out colored("Use blue for further information", 'blue'); >+ say_failure("Use red for danger/failure"); >+ say_success("Use green for success"); >+ say_warning("Use yellow for warning/a call to action"); >+ say_info("Use blue for further information"); > }, > }; >-- >2.44.0
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 35681
:
160439
|
160440
|
160443
|
160444
|
160445
|
160447
|
160448
|
160449
|
160473
|
160503
|
160504
|
160505
|
160506
|
160750
|
160751
|
160772
|
164903
|
164904
|
164905
|
164906
|
164907
|
164908
|
164909
|
164942
|
164943
|
164944
|
164945
|
164946
|
164947
| 164948 |
164949