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
integration
prechecker
Commits
e5a1f7d9
Commit
e5a1f7d9
authored
Mar 02, 2016
by
Andrew Nicols
Browse files
MDL-52136 mod_forum: forum_post is templatable
parent
ca0227dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
mod/forum/classes/output/forum_post.php
View file @
e5a1f7d9
...
...
@@ -34,7 +34,7 @@ defined('MOODLE_INTERNAL') || die();
*
* @property boolean $viewfullnames Whether to override fullname()
*/
class
forum_post
implements
\
renderable
{
class
forum_post
implements
\
renderable
,
\
templatable
{
/**
* The course that the forum post is in.
...
...
@@ -137,7 +137,7 @@ class forum_post implements \renderable {
* @param bool $plaintext Whethe the target is a plaintext target
* @return stdClass Data ready for use in a mustache template
*/
public
function
export_for_template
(
\
mod_forum_
renderer
$renderer
,
$plaintext
=
false
)
{
public
function
export_for_template
(
\
renderer
_base
$renderer
,
$plaintext
=
false
)
{
if
(
$plaintext
)
{
return
$this
->
export_for_template_text
(
$renderer
);
}
else
{
...
...
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