Commit 815c79fd authored by Nigel McNie's avatar Nigel McNie
Browse files

Make sure the file library is included before getting the dataroot image path for the file.

parent b03a0143
......@@ -858,6 +858,7 @@ class ArtefactTypeImage extends ArtefactTypeFile {
public function get_path($data=array()) {
$size = (isset($data['size'])) ? $data['size'] : null;
$result = get_dataroot_image_path('artefact/file/', $this->id, $size);
return $result;
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