1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-29 18:47:54 +01:00

Enable forum_post custom caption

Enable forum_post custom caption
This commit is contained in:
rica-carv 2016-11-29 17:18:18 +00:00 committed by GitHub
parent fb857470dd
commit f841c1785b

View File

@ -859,6 +859,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', $template['caption']);
}
$this->render($text);
if(empty($data))