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
8c5a6fdd
Commit
8c5a6fdd
authored
Mar 22, 2010
by
Penny Leach
Browse files
Leap2A: intermin fix for #544160 - don't delete blogs if they have posts.
Signed-off-by:
Penny Leach
<
penny@mjollnir.org
>
parent
168ffe41
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/artefact/blog/import/leap/lib.php
View file @
8c5a6fdd
...
@@ -267,7 +267,9 @@ class LeapImportBlog extends LeapImportArtefactPlugin {
...
@@ -267,7 +267,9 @@ class LeapImportBlog extends LeapImportArtefactPlugin {
public
static
function
cleanup
(
PluginImportLeap
$importer
)
{
public
static
function
cleanup
(
PluginImportLeap
$importer
)
{
if
(
self
::
$importedablog
&&
self
::
$firstblogid
)
{
if
(
self
::
$importedablog
&&
self
::
$firstblogid
)
{
$blog
=
artefact_instance_from_id
(
self
::
$firstblogid
);
$blog
=
artefact_instance_from_id
(
self
::
$firstblogid
);
$blog
->
delete
();
if
(
!
$blog
->
has_children
())
{
// TODO see #544160
$blog
->
delete
();
}
}
}
}
}
...
...
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