Bugzilla – Attachment 162211 Details for
Bug 32693
The 'About Koha' page loads slowly
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 32693: Preparation: About script: docdir
Bug-32693-Preparation-About-script-docdir.patch (text/plain), 1.68 KB, created by
Pedro Amorim
on 2024-02-15 14:43:38 UTC
(
hide
)
Description:
Bug 32693: Preparation: About script: docdir
Filename:
MIME Type:
Creator:
Pedro Amorim
Created:
2024-02-15 14:43:38 UTC
Size:
1.68 KB
patch
obsolete
>From 9faa023ca3b6c9ec4366a5331602a325854c57b0 Mon Sep 17 00:00:00 2001 >From: Pedro Amorim <pedro.amorim@ptfs-europe.com> >Date: Thu, 15 Feb 2024 13:27:50 -0100 >Subject: [PATCH] Bug 32693: Preparation: About script: docdir > >docdir is used in both team + history tabs >was previously being loaded in team and additionally used in history >but because now we're only loading one tab at a time, we need to move this >--- > about.pl | 18 ++++++++++-------- > 1 file changed, 10 insertions(+), 8 deletions(-) > >diff --git a/about.pl b/about.pl >index 218c384b389..d533e1e30eb 100755 >--- a/about.pl >+++ b/about.pl >@@ -70,6 +70,16 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user( > } > ); > >+my $docdir; >+if ( defined C4::Context->config('docdir') ) { >+ $docdir = C4::Context->config('docdir'); >+} else { >+ >+ # if no <docdir> is defined in koha-conf.xml, use the default location >+ # this is a work-around to stop breakage on upgraded Kohas, bug 8911 >+ $docdir = C4::Context->config('intranetdir') . '/docs'; >+} >+ > my $config_timezone = C4::Context->config('timezone') // ''; > my $config_invalid = !DateTime::TimeZone->is_valid_name( $config_timezone ); > my $env_timezone = $ENV{TZ} // ''; >@@ -737,14 +747,6 @@ $template->param( table => $table ); > > ## ------------------------------------------ > ## Koha contributions >-my $docdir; >-if ( defined C4::Context->config('docdir') ) { >- $docdir = C4::Context->config('docdir'); >-} else { >- # if no <docdir> is defined in koha-conf.xml, use the default location >- # this is a work-around to stop breakage on upgraded Kohas, bug 8911 >- $docdir = C4::Context->config('intranetdir') . '/docs'; >-} > > ## Release teams > my $teams = >-- >2.30.2
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 32693
:
161832
|
161881
|
161883
|
162208
|
162209
|
162210
|
162211
|
162212
|
162213
|
162214
|
162219
|
162220
|
162221
|
162222
|
162223
|
162224
|
162225
|
162660
|
162661
|
162662
|
162663
|
162664
|
162665
|
162666
|
165251
|
165252
|
165253
|
165254
|
165255
|
165256
|
165257
|
166421