Vergleich showthread.php - 1.8.27 - 1.8.30

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 617Zeile 617
		// Decide what poll status to show depending on the status of the poll and whether or not the user voted already.
if(isset($alreadyvoted) || isset($showresults) || isset($nopermission))
{

		// Decide what poll status to show depending on the status of the poll and whether or not the user voted already.
if(isset($alreadyvoted) || isset($showresults) || isset($nopermission))
{

			if($alreadyvoted)



			$undovote = '';

if(isset($alreadyvoted))

			{
$pollstatus = $lang->already_voted;


			{
$pollstatus = $lang->already_voted;


				$undovote = '';

 
				if($mybb->usergroup['canundovotes'] == 1)
{
eval("\$undovote = \"".$templates->get("showthread_poll_undovote")."\";");
}
}

				if($mybb->usergroup['canundovotes'] == 1)
{
eval("\$undovote = \"".$templates->get("showthread_poll_undovote")."\";");
}
}

			elseif($nopermission)

			elseif(isset($nopermission))

			{
$pollstatus = $lang->no_voting_permission;
}

			{
$pollstatus = $lang->no_voting_permission;
}

Zeile 762Zeile 763
	// Work out the thread rating for this thread.
$rating = $ratethread = '';
if($mybb->settings['allowthreadratings'] != 0 && $forum['allowtratings'] != 0)

	// Work out the thread rating for this thread.
$rating = $ratethread = '';
if($mybb->settings['allowthreadratings'] != 0 && $forum['allowtratings'] != 0)

	{

	{

		$rated = 0;
$lang->load("ratethread");
if($thread['numratings'] <= 0)

		$rated = 0;
$lang->load("ratethread");
if($thread['numratings'] <= 0)

Zeile 905Zeile 906
				}
$tree[$post['replyto']][$post['pid']] = $post;
$postsdone[$post['pid']] = 1;

				}
$tree[$post['replyto']][$post['pid']] = $post;
$postsdone[$post['pid']] = 1;

			}

			}

		}

$threadedbits = buildtree();

		}

$threadedbits = buildtree();

Zeile 1047Zeile 1048
				else
{
$highlight = "&amp;highlight=".urlencode($mybb->get_input('highlight'));

				else
{
$highlight = "&amp;highlight=".urlencode($mybb->get_input('highlight'));

				}
}

				}
}


if($defaultmode != "linear")
{


if($defaultmode != "linear")
{

Zeile 1191Zeile 1192
				{
$similar_thread['threadprefix'] = $prefix['displaystyle'].'&nbsp;';
}

				{
$similar_thread['threadprefix'] = $prefix['displaystyle'].'&nbsp;';
}

 
			}
else
{
$similar_thread['threadprefix'] = '';

			}

$similar_thread['subject'] = $parser->parse_badwords($similar_thread['subject']);

			}

$similar_thread['subject'] = $parser->parse_badwords($similar_thread['subject']);