1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-26 07:44:49 +02:00

Merge pull request #2079 from rica-carv/rica-carv-forum_post

Enable forum_post custom caption
This commit is contained in:
Cameron
2016-11-29 12:35:12 -08:00
committed by GitHub
2 changed files with 6 additions and 0 deletions

View File

@@ -865,6 +865,11 @@ class forum_post_handler
$sc = e107::getScBatch('post', 'forum')->setScVar('forum', $this->forumObj)->setScVar('threadInfo', vartrue($data))->setVars($data);
$text = e107::getParser()->parseTemplate($template['form'], true, $sc);
if(!empty($template['caption']))
{
$this->forumObj->prefs->set('title', e107::getParser()->parseTemplate($template['caption'], true, $sc));
}
$this->render($text);
if(empty($data))