From 2bf01b1377c8c004bc08e25a7f0ad850895e5479 Mon Sep 17 00:00:00 2001 From: Caroline Cyr La Rose Date: Mon, 4 Dec 2023 17:37:39 -0500 Subject: [PATCH] Bug 35463: perltidy formatting corrections --- Koha/Manual.pm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Koha/Manual.pm b/Koha/Manual.pm index 64b4258370..9c33f4a504 100644 --- a/Koha/Manual.pm +++ b/Koha/Manual.pm @@ -236,7 +236,7 @@ our $mapping = { 'plugins/plugins-upload' => '/plugins.html', 'preservation/home' => '/preservation.html', 'preservation/settings/processings/add' => '/preservation.html#add-a-new-processing', - 'preservation/settings/processings/edit/' => '/preservation.html#add-a-new-processing', + 'preservation/settings/processings/edit/' => '/preservation.html#add-a-new-processing', 'preservation/settings' => '/preservation.html#settings', 'preservation/settings/' => '/preservation.html#settings', 'preservation/trains' => '/preservation.html#trains', @@ -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=(?[\w+,.-]*)/) { + if ( $url =~ /(?:\?|\&)tab=(?[\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.34.1