Bugzilla – Attachment 160015 Details for
Bug 35463
Link preservation module help to the manual
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 35463: perltidy formatting corrections
Bug-35463-perltidy-formatting-corrections.patch (text/plain), 1.56 KB, created by
Martin Renvoize
on 2023-12-19 15:14:44 UTC
(
hide
)
Description:
Bug 35463: perltidy formatting corrections
Filename:
MIME Type:
Creator:
Martin Renvoize
Created:
2023-12-19 15:14:44 UTC
Size:
1.56 KB
patch
obsolete
>From b74b2367d903506616ab669403edf222327f5fd9 Mon Sep 17 00:00:00 2001 >From: Caroline Cyr La Rose <caroline.cyr-la-rose@inlibro.com> >Date: Mon, 4 Dec 2023 17:37:39 -0500 >Subject: [PATCH] Bug 35463: perltidy formatting corrections > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Signed-off-by: Philip Orr <philip.orr@lmscloud.de> >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > Koha/Manual.pm | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > >diff --git a/Koha/Manual.pm b/Koha/Manual.pm >index 4db90835415..9c33f4a5045 100644 >--- a/Koha/Manual.pm >+++ b/Koha/Manual.pm >@@ -308,23 +308,23 @@ our $mapping = { > sub get_url { > my ( $url, $preferred_language ) = @_; > my $file; >- if ($url =~ /koha\/(.*)\.pl/ || $url =~ '/koha/(erm.*)' || $url =~ '/koha/(preservation.*)') { >+ if ( $url =~ /koha\/(.*)\.pl/ || $url =~ '/koha/(erm.*)' || $url =~ '/koha/(preservation.*)' ) { > $file = $1; > } else { > $file = 'mainpage'; > } > $file =~ s/[^a-zA-Z0-9_\-\/]*//g; > >- if ( $file =~ m|^erm| || $file =~ m|^preservation|) { >+ if ( $file =~ m|^erm| || $file =~ m|^preservation| ) { > $file =~ s|\d*+||g; > } > > my $view; >- if ($url =~ /(?:\?|\&)tab=(?<value>[\w+,.-]*)/) { >+ if ( $url =~ /(?:\?|\&)tab=(?<value>[\w+,.-]*)/ ) { > $view = $file . '#' . $+{value}; > } > >- my $base_url = _get_base_url( $preferred_language ); >+ my $base_url = _get_base_url($preferred_language); > return $base_url > . ( > exists $mapping->{$view} ? $mapping->{$view} >-- >2.43.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 35463
:
159456
|
159485
|
159563
|
159564
|
159582
|
159583
|
159584
|
159586
|
159644
|
159645
|
159646
|
159647
|
160013
|
160014
| 160015 |
160016