1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-01 12:20:44 +02:00

Forum: Fix wrapper styling. More work on experimental 'split' function.

This commit is contained in:
Cameron
2016-05-04 09:13:46 -07:00
parent 8dbe69c291
commit 1ad918eb65
4 changed files with 60 additions and 29 deletions

View File

@@ -814,7 +814,7 @@ class e107forum
function threadAdd($threadInfo, $postInfo)
{
$e107 = e107::getInstance();
$info = array();
// $info['_FIELD_TYPES'] = $this->fieldTypes['forum_thread'];
@@ -1059,14 +1059,15 @@ class e107forum
}
/**
* Checks if post is the initial post which started the topic.
* Retrieves list of post_id's belonging to one post_thread. When lowest value is equal to input param, return true.
* Used to prevent deleting of the initial post (so topic shows empty does not get hidden accidently while posts remain in database)
*
* @param int id of the post
* @return boolean true if post is the initial post of the topic (false, if not)
*
*/
* Checks if post is the initial post which started the topic.
* Retrieves list of post_id's belonging to one post_thread. When lowest value is equal to input param, return true.
* Used to prevent deleting of the initial post (so topic shows empty does not get hidden accidently while posts remain in database)
*
* @param $postId
* @return bool true if post is the initial post of the topic (false, if not)
*
* @internal param int $postid
*/
function threadDetermineInitialPost($postId)
{
$sql = e107::getDb();
@@ -1090,6 +1091,8 @@ class e107forum
return false;
}
function threadGetUserPostcount($threadId)
{
$threadId = (int)$threadId;