1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-21 13:11:52 +02:00

Issue #2081 - v2.x Shortcode Wrapper now working for Forum Post form.

This commit is contained in:
Cameron 2016-12-01 13:35:46 -08:00
parent 61a02c7569
commit 26bee2b7d5
2 changed files with 4 additions and 0 deletions

View File

@ -863,6 +863,9 @@ class forum_post_handler
$data = $this->data;
$template = $this->getTemplate();
$sc = e107::getScBatch('post', 'forum')->setScVar('forum', $this->forumObj)->setScVar('threadInfo', vartrue($data))->setVars($data);
$sc->wrapper('forum_post');
$text = e107::getParser()->parseTemplate($template['form'], true, $sc);
$caption = null;

View File

@ -54,6 +54,7 @@ $FORUM_POST_TEMPLATE['form'] = "
$FORUM_POST_TEMPLATE['reply'] = "";
// $FORUM_POST_WRAPPER['FORUM_POST_TEXTAREA'] = "(pre){---}(post)"; // Custom Wrapper.
$FORUM_CRUMB['sitename']['value'] = "<a class='forumlink' href='{SITENAME_HREF}'>{SITENAME}</a>";