mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 21:57:51 +02:00
Issue #371 - forum template parsing issue.
This commit is contained in:
@@ -81,7 +81,7 @@ define('MODERATOR', USER && $forum->isModerator(USERID));
|
||||
require_once(e_HANDLER.'ren_help.php');
|
||||
|
||||
//e107::getScBatch('view', 'forum'); //XXX FIXME Conflicting shortcode names. Find a solution without renaming them.
|
||||
e107::getScBatch('post', 'forum')->setScVar('forum', $forum)->setScVar('threadInfo', vartrue($threadInfo));
|
||||
$sc = e107::getScBatch('post', 'forum')->setScVar('forum', $forum)->setScVar('threadInfo', vartrue($threadInfo));
|
||||
|
||||
$gen = new convert;
|
||||
$fp = new floodprotect;
|
||||
@@ -520,7 +520,7 @@ if($action == 'rp')
|
||||
$FORUMPOST = $FORUMPOST_REPLY;
|
||||
}
|
||||
e107::lan('forum','English_front');
|
||||
$text = $tp->parseTemplate($FORUMPOST, true);
|
||||
$text = $tp->parseTemplate($FORUMPOST, true, $sc);
|
||||
|
||||
|
||||
// -------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
@@ -358,13 +358,13 @@ foreach ($postList as $postInfo)
|
||||
$_style = (isset($FORUMREPLYSTYLE_ALT) && $alt ? $FORUMREPLYSTYLE_ALT : $FORUMREPLYSTYLE);
|
||||
}
|
||||
|
||||
e107::getScBatch('view', 'forum')->setScVar('postInfo', $postInfo);
|
||||
$forum_shortcodes = e107::getScBatch('view', 'forum')->setScVar('postInfo', $postInfo);
|
||||
$forrep .= $tp->parseTemplate($_style, true, $forum_shortcodes) . "\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
$postInfo['thread_start'] = true;
|
||||
e107::getScBatch('view', 'forum')->setScVar('postInfo', $postInfo);
|
||||
$forum_shortcodes = e107::getScBatch('view', 'forum')->setScVar('postInfo', $postInfo);
|
||||
$forthr = $tp->parseTemplate($FORUMTHREADSTYLE, true, vartrue($forum_shortcodes)) . "\n";
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user