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:
parent
fb857470dd
commit
f841c1785b
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user