Vergleich inc/class_moderation.php - 1.8.36 - 1.8.38

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 1594Zeile 1594
		{
update_first_post($thread['tid']);
}

		{
update_first_post($thread['tid']);
}

 

// Attach moved posts to the first post
$db->update_query("posts", array('replyto' => $new_firstpost['pid']), "tid='{$tid}' AND replyto = 0 AND pid != '{$new_firstpost['pid']}'");


// Update thread count if thread has a new firstpost and is visible
if($thread['uid'] != $new_firstpost['uid'] && $thread['visible'] == 1 && $forum_cache[$thread['fid']]['usethreadcounts'] == 1)


// Update thread count if thread has a new firstpost and is visible
if($thread['uid'] != $new_firstpost['uid'] && $thread['visible'] == 1 && $forum_cache[$thread['fid']]['usethreadcounts'] == 1)

Zeile 1862Zeile 1865
				if(!isset($user_counters[$newthread['uid']]))
{
$user_counters[$newthread['uid']] = array(

				if(!isset($user_counters[$newthread['uid']]))
{
$user_counters[$newthread['uid']] = array(

						'postnum' => 0,

						'postnum' => 0,

						'threadnum' => 0
);
}

						'threadnum' => 0
);
}

Zeile 1996Zeile 1999
						'postnum' => 0,
'threadnum' => 0
);

						'postnum' => 0,
'threadnum' => 0
);

				}

				}


// Update post counters if visibility changes
if($post['threadvisible'] != $new_firstpost['visible'])


// Update post counters if visibility changes
if($post['threadvisible'] != $new_firstpost['visible'])

Zeile 2022Zeile 2025
					if($post['threadvisible'] == 0 || ($new_firstpost['visible'] == 0 && $post['threadvisible'] == 1))
{
--$forum_counters[$post['fid']]['unapprovedposts'];

					if($post['threadvisible'] == 0 || ($new_firstpost['visible'] == 0 && $post['threadvisible'] == 1))
{
--$forum_counters[$post['fid']]['unapprovedposts'];

					}

					}

					else
{
--$forum_counters[$post['fid']]['deletedposts'];

					else
{
--$forum_counters[$post['fid']]['deletedposts'];

Zeile 2030Zeile 2033

// Add old first post
if($post['threadvisible'] == 1)


// Add old first post
if($post['threadvisible'] == 1)

					{

					{

						++$thread_counters[$post['tid']]['replies'];
++$forum_counters[$post['fid']]['posts'];
if($forum_cache[$post['fid']]['usepostcounts'] == 1)

						++$thread_counters[$post['tid']]['replies'];
++$forum_counters[$post['fid']]['posts'];
if($forum_cache[$post['fid']]['usepostcounts'] == 1)

Zeile 2063Zeile 2066

// This is the new first post of an existing thread?
if($post['pid'] == $post_info['pid'] && $post['dateline'] < $newthread['dateline'])


// This is the new first post of an existing thread?
if($post['pid'] == $post_info['pid'] && $post['dateline'] < $newthread['dateline'])

			{

			{

				// Update post counters if visibility changes
if($post['visible'] != $newthread['visible'])
{
$db->update_query("posts", array('visible' => $newthread['visible']), "pid='{$post['pid']}'");

				// Update post counters if visibility changes
if($post['visible'] != $newthread['visible'])
{
$db->update_query("posts", array('visible' => $newthread['visible']), "pid='{$post['pid']}'");





					// This is needed to update the forum counters correctly
$post['visible'] = $newthread['visible'];

					// This is needed to update the forum counters correctly
$post['visible'] = $newthread['visible'];

				}


				}


				// Update user thread counter if thread opener changes
if($newthread['visible'] == 1 && $forum_cache[$newthread['fid']]['usethreadcounts'] == 1 && $post['uid'] != $newthread['uid'])
{

				// Update user thread counter if thread opener changes
if($newthread['visible'] == 1 && $forum_cache[$newthread['fid']]['usethreadcounts'] == 1 && $post['uid'] != $newthread['uid'])
{

Zeile 2130Zeile 2133
				++$forum_counters[$moveto]['deletedposts'];
}
}

				++$forum_counters[$moveto]['deletedposts'];
}
}

 

// Attach moved posts to the first post
$db->update_query("posts", array('replyto' => $post_info['pid']), "tid='{$newtid}' AND replyto = 0 AND pid != '{$post_info['pid']}'");


if($destination_tid == 0 && $newthread['visible'] == 1)
{


if($destination_tid == 0 && $newthread['visible'] == 1)
{