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
5550902a
Commit
5550902a
authored
Apr 07, 2010
by
Richard Mansfield
Browse files
Allow for anonymous authors in artefact export
Signed-off-by:
Richard Mansfield
<
richardm@catalyst.net.nz
>
parent
eda4ad16
Changes
2
Hide whitespace changes
Inline
Side-by-side
htdocs/export/leap/lib.php
View file @
5550902a
...
@@ -627,13 +627,18 @@ class LeapExportElement {
...
@@ -627,13 +627,18 @@ class LeapExportElement {
}
}
/**
/**
* The id of the entry's author
* The name of the entry's author
* Override this if the author is different from the portfolio holder
*
*
* @return in
t
* @return
str
in
g
*/
*/
public
function
get_entry_author
()
{
public
function
get_entry_author
()
{
return
;
if
(
$author
=
$this
->
artefact
->
get
(
'author'
))
{
if
(
$author
!=
$this
->
artefact
->
get
(
'owner'
))
{
return
display_name
(
$author
);
}
return
;
}
return
$this
->
artefact
->
get
(
'authorname'
);
}
}
/**
/**
...
...
htdocs/export/leap/theme/raw/entry.tpl
View file @
5550902a
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<title>
{
$title
|
escape
}
</title>
<title>
{
$title
|
escape
}
</title>
<id>
{
$id
}
</id>
<id>
{
$id
}
</id>
{
if
$author
}
<author>
{
if
$author
}
<author>
<name>
{
$author
|
display_name
|
escape
}
</name>
<name>
{
$author
|
escape
}
</name>
</author>
</author>
{/
if
}
{/
if
}
{
if
$updated
}
<updated>
{
$updated
}
</updated>
{/
if
}
{
if
$updated
}
<updated>
{
$updated
}
</updated>
{/
if
}
...
...
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