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
5e861979
Commit
5e861979
authored
Jun 22, 2009
by
Nigel McNie
Browse files
Change attach_file calls to attach() in line with API changes.
parent
dcc4520f
Changes
1
Show whitespace changes
Inline
Side-by-side
htdocs/artefact/blog/import/leap/lib.php
View file @
5e861979
...
...
@@ -161,7 +161,7 @@ class LeapImportBlog extends LeapImportArtefactPlugin {
}
$importer
->
trace
(
"Attaching file
$blogpostlink[href]
to blog post
$blogpostentry->id
"
,
PluginImportLeap
::
LOG_LEVEL_VERBOSE
);
$artefactids
=
$importer
->
get_artefactids_imported_by_entryid
((
string
)
$blogpostlink
[
'href'
]);
$blogpost
->
attach
_file
(
$artefactids
[
0
]);
$blogpost
->
attach
(
$artefactids
[
0
]);
}
if
(
$blogpost
)
{
$blogpost
->
commit
();
...
...
@@ -277,7 +277,7 @@ class LeapImportBlog extends LeapImportArtefactPlugin {
// importing a blog entry with out-of-line content. We
// attach the file to this post.
$blogpost
=
new
ArtefactTypeBlogPost
(
$artefactids
[
0
]);
$blogpost
->
attach
_file
(
$artefactids
[
1
]);
$blogpost
->
attach
(
$artefactids
[
1
]);
$blogpost
->
commit
();
}
}
...
...
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