Commit fc2e7172 authored by Nigel McNie's avatar Nigel McNie
Browse files

Given that that transaction level counting is now implemented, there's no...

Given that that transaction level counting is now implemented, there's no reason to do it ourselves when committing artefacts.
parent e3f6653e
......@@ -364,9 +364,7 @@ abstract class ArtefactType {
return;
}
if (empty($GLOBALS['_TRANSACTION_STARTED'])) {
db_begin();
}
db_begin();
// Call delete() on children (if there are any)
if ($children = $this->get_children_instances()) {
......@@ -400,9 +398,7 @@ abstract class ArtefactType {
$this->parentdirty = true;
$this->deleted = true;
if (!empty($GLOBALS['_TRANSACTION_STARTED'])) {
db_commit();
}
db_commit();
}
/**
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment