Skip to content
GitLab
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
e56aab83
Commit
e56aab83
authored
Nov 15, 2006
by
Richard Mansfield
Browse files
Merge with
git+ssh://git.catalyst.net.nz/var/git/mahara.git
parents
5749db2e
21ac8b0a
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/artefact/lib.php
View file @
e56aab83
...
...
@@ -235,8 +235,11 @@ abstract class ArtefactType {
public
function
set
(
$field
,
$value
)
{
if
(
property_exists
(
$this
,
$field
))
{
if
(
$this
->
{
$field
}
!=
$value
)
{
// only set it to dirty if it's changed
$this
->
dirty
=
true
;
}
$this
->
{
$field
}
=
$value
;
$this
->
dirty
=
true
;
if
(
$field
==
'parent'
)
{
$this
->
parentdirty
=
true
;
}
...
...
@@ -251,7 +254,6 @@ abstract class ArtefactType {
* artefact cache as dirty if necessary.
*/
public
function
__destruct
()
{
try
{
if
(
!
empty
(
$this
->
dirty
))
{
$this
->
commit
();
}
...
...
@@ -266,10 +268,6 @@ abstract class ArtefactType {
set_field_select
(
'artefact_parent_cache'
,
'dirty'
,
1
,
'artefact = ? OR parent = ?'
,
array
(
$this
->
id
,
$this
->
id
));
}
}
catch
(
Exception
$e
)
{
log_warn
(
$e
->
GetMessage
());
}
}
public
function
is_container
()
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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