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
b1e8b783
Commit
b1e8b783
authored
Jan 24, 2007
by
Richard Mansfield
Browse files
Fix blogpost public_feedback_allowed()
parent
9f1f5f48
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/artefact/blog/lib.php
View file @
b1e8b783
...
...
@@ -760,7 +760,10 @@ class ArtefactTypeBlogPost extends ArtefactType {
}
public
function
public_feedback_allowed
()
{
return
parent
::
get
(
'commentsallowed'
);
// Comments are not allowed on posts when the blog has
// commentsallowed set to 0;
$parent
=
get_field
(
'artefact'
,
'parent'
,
'id'
,
$this
->
get
(
'id'
));
return
get_field
(
'artefact_blog_blog'
,
'commentsallowed'
,
'blog'
,
$parent
);
}
...
...
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