Vergleich showthread.php - 1.8.27 - 1.8.33

  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 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 1126Zeile 1127
	if($mybb->settings['showsimilarthreads'] != 0)
{
$own_perm = '';

	if($mybb->settings['showsimilarthreads'] != 0)
{
$own_perm = '';

		if($forumpermissions['canonlyviewownthreads'] == 1)

		if(isset($forumpermissions['canonlyviewownthreads']) && $forumpermissions['canonlyviewownthreads'] == 1)

		{
$own_perm = " AND t.uid={$mybb->user['uid']}";
}

		{
$own_perm = " AND t.uid={$mybb->user['uid']}";
}

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']);