Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
6bdb24eb
Commit
6bdb24eb
authored
Feb 25, 2010
by
Penny Leach
Browse files
leap import - fixed a problem where files were not being created
Signed-off-by:
Penny Leach
<
penny@mjollnir.org
>
parent
fab3a7fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/artefact/file/import/leap/lib.php
View file @
6bdb24eb
...
...
@@ -244,7 +244,7 @@ class LeapImportFile extends LeapImportArtefactPlugin {
$pathname
=
$dir
.
DIRECTORY_SEPARATOR
.
$pathname
;
// This API sucks, but that's not my problem
if
(
!
$id
=
ArtefactTypeFile
::
save_file
(
$pathname
,
$data
,
$importer
->
get
(
'usrobj'
)))
{
if
(
!
$id
=
ArtefactTypeFile
::
save_file
(
$pathname
,
$data
,
$importer
->
get
(
'usrobj'
)
,
true
))
{
$importer
->
trace
(
"WARNING: the file for entry
$entry->id
does not exist in the import (path=
{
$entry
->
content
[
'src'
]
}
)"
);
return
;
}
...
...
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