Bugzilla – Attachment 73430 Details for
Bug 20428
MARC import fails on Debian Stretch
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20428: Make Koha::UploadedFile use the new config entry for tmp files
Bug-20428-Make-KohaUploadedFile-use-the-new-config.patch (text/plain), 956 bytes, created by
Tomás Cohen Arazi (tcohen)
on 2018-03-29 14:19:23 UTC
(
hide
)
Description:
Bug 20428: Make Koha::UploadedFile use the new config entry for tmp files
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2018-03-29 14:19:23 UTC
Size:
956 bytes
patch
obsolete
>From 10142e31a876381c6b095b3cabf0239063cccf72 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Thu, 29 Mar 2018 10:44:59 -0300 >Subject: [PATCH] Bug 20428: Make Koha::UploadedFile use the new config entry > for tmp files > >This patch makes Koha::UploadedFile->temporary_directory try to use the >new configuration entry. It will fallback to File::Spec->tmpdir >otherwise. >--- > Koha/UploadedFile.pm | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > >diff --git a/Koha/UploadedFile.pm b/Koha/UploadedFile.pm >index 9df1178608..2e828aec32 100644 >--- a/Koha/UploadedFile.pm >+++ b/Koha/UploadedFile.pm >@@ -168,7 +168,9 @@ Returns root directory for temporary storage > > sub temporary_directory { > my ( $class ) = @_; >- return File::Spec->tmpdir; >+ return (C4::Context->config('upload_tmp_path')) >+ ? C4::Context->config('upload_tmp_path') >+ : File::Spec->tmpdir; > } > > =head3 _type >-- >2.16.3
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 20428
:
73426
|
73427
|
73428
|
73429
|
73430
|
73431
|
75159
|
75160
|
75161
|
75162
|
75163
|
75164
|
75169
|
75170
|
75171
|
75172
|
75275
|
75279
|
75280
|
75281
|
75282
|
75283
|
75286
|
75293
|
75294
|
75295
|
75296
|
75297
|
75298
|
75305