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
9f58b4cc
Commit
9f58b4cc
authored
May 01, 2007
by
Nigel McNie
Committed by
Nigel McNie
May 01, 2007
Browse files
Fix bug 610 - link to blog post when metadata is displayed
parent
9ae37bd1
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/artefact/blog/lib.php
View file @
9f58b4cc
...
...
@@ -564,6 +564,9 @@ class ArtefactTypeBlogPost extends ArtefactType {
$data
[
'attachments'
]
=
array
(
'name'
=>
get_string
(
'attachments'
,
'artefact.blog'
),
'value'
=>
$this
->
count_attachments
()
.
' '
.
get_string
(
'files'
,
'artefact.file'
));
if
(
isset
(
$options
[
'viewid'
])
&&
artefact_in_view
(
$id
=
$this
->
get
(
'id'
),
$options
[
'viewid'
]))
{
$data
[
'title'
][
'value'
]
=
'<a href="'
.
get_config
(
'wwwroot'
)
.
'view/view.php?view='
.
$options
[
'viewid'
]
.
'&artefact='
.
$id
.
'">'
.
$data
[
'title'
][
'value'
]
.
'</a>'
;
}
return
$data
;
}
...
...
Write
Preview
Markdown
is supported
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