Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Maarch
maarchRM
Commits
33cc8eba
Verified
Commit
33cc8eba
authored
Feb 24, 2020
by
Cyril Vazquez
Browse files
Fix conversion from handler type plainfile
parent
158d36a6
Pipeline
#6975
canceled with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/bundle/digitalResource/Controller/digitalResource.php
View file @
33cc8eba
...
...
@@ -674,7 +674,7 @@ class digitalResource
$handler
=
$digitalResource
->
getHandler
();
$metadata
=
stream_get_meta_data
(
$handler
);
if
(
$metadata
[
'wrapper_type'
]
==
'plainfile'
)
{
$srcfile
=
$
handler
;
$srcfile
=
$
metadata
[
'uri'
]
;
}
else
{
$tempdir
=
str_replace
(
"/"
,
DIRECTORY_SEPARATOR
,
\
laabs\tempdir
());
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment