Commit 2917eaa1 authored by Clare Lenihan's avatar Clare Lenihan Committed by Clare Lenihan
Browse files

changing use of set to setting directly in construct of files, folders and images

parent 1345bbba
......@@ -270,7 +270,7 @@ abstract class ArtefactTypeFileBase extends ArtefactType {
if ($this->id && ($filedata = get_record('artefact_file_files', 'artefact', $this->id))) {
foreach($filedata as $name => $value) {
if (property_exists($this, $name)) {
$this->set($name, $value);
$this->{$name} = $value;
}
}
}
......@@ -908,7 +908,7 @@ class ArtefactTypeImage extends ArtefactTypeFile {
if ($this->id && ($filedata = get_record('artefact_file_image', 'artefact', $this->id))) {
foreach($filedata as $name => $value) {
if (property_exists($this, $name)) {
$this->set($name, $value);
$this->{$name} = $value;
}
}
}
......
Markdown is supported
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