mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 11:50:30 +02:00
Enable forum_post custom caption
Enable forum_post custom caption
This commit is contained in:
@@ -859,6 +859,11 @@ class forum_post_handler
|
|||||||
$sc = e107::getScBatch('post', 'forum')->setScVar('forum', $this->forumObj)->setScVar('threadInfo', vartrue($data))->setVars($data);
|
$sc = e107::getScBatch('post', 'forum')->setScVar('forum', $this->forumObj)->setScVar('threadInfo', vartrue($data))->setVars($data);
|
||||||
$text = e107::getParser()->parseTemplate($template['form'], true, $sc);
|
$text = e107::getParser()->parseTemplate($template['form'], true, $sc);
|
||||||
|
|
||||||
|
if(!empty($template['caption']))
|
||||||
|
{
|
||||||
|
$this->forumObj->prefs->set('title', $template['caption']);
|
||||||
|
}
|
||||||
|
|
||||||
$this->render($text);
|
$this->render($text);
|
||||||
|
|
||||||
if(empty($data))
|
if(empty($data))
|
||||||
|
Reference in New Issue
Block a user