Skip to content
GitLab
Menu
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
3bb948c0
Commit
3bb948c0
authored
Sep 09, 2009
by
Richard Mansfield
Browse files
Show institution/site owners in artefact->display_owner()
Signed-off-by:
Richard Mansfield
<
richardm@catalyst.net.nz
>
parent
b5853385
Changes
1
Show whitespace changes
Inline
Side-by-side
htdocs/artefact/lib.php
View file @
3bb948c0
...
...
@@ -638,6 +638,12 @@ abstract class ArtefactType {
if
(
$group
=
$this
->
get
(
'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
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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