Commit 3bb948c0 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Show institution/site owners in artefact->display_owner()


Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent b5853385
...@@ -638,6 +638,12 @@ abstract class ArtefactType { ...@@ -638,6 +638,12 @@ abstract class ArtefactType {
if ($group = $this->get('group')) { if ($group = $this->get('group')) {
return get_field('group', 'name', 'id', $group); return get_field('group', 'name', 'id', $group);
} }
if ($institution = $this->get('institution')) {
if ($institution == 'mahara') {
return get_config('sitename');
}
return get_field('institution', 'displayname', 'name', $institution);
}
return null; return null;
} }
......
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