Vergleich showthread.php - 1.6.14 - 1.6.16

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 44Zeile 44
		);
$query = $db->simple_select("posts", "tid", "pid=".$mybb->input['pid'], $options);
$post = $db->fetch_array($query);

		);
$query = $db->simple_select("posts", "tid", "pid=".$mybb->input['pid'], $options);
$post = $db->fetch_array($query);

 
		
if(empty($post))
{
// post does not exist --> show error message
error($lang->error_invalidpost);
}


		$mybb->input['tid'] = $post['tid'];
}
}

		$mybb->input['tid'] = $post['tid'];
}
}

Zeile 334Zeile 341
if($mybb->settings['showforumpagesbreadcrumb'])
{
// How many pages are there?

if($mybb->settings['showforumpagesbreadcrumb'])
{
// How many pages are there?

	if(!$mybb->settings['threadsperpage'])

	if(!$mybb->settings['threadsperpage'] || (int)$mybb->settings['threadsperpage'] < 1)

	{
$mybb->settings['threadsperpage'] = 20;
}

	{
$mybb->settings['threadsperpage'] = 20;
}

Zeile 808Zeile 815
	else // Linear display
{
$threadexbox = '';

	else // Linear display
{
$threadexbox = '';

		if(!$mybb->settings['postsperpage'])

		if(!$mybb->settings['postsperpage'] || (int)$mybb->settings['postsperpage'] < 1)

		{

		{

			$mybb->settings['postperpage'] = 20;

			$mybb->settings['postsperpage'] = 20;

		}

// Figure out if we need to display multiple pages.

		}

// Figure out if we need to display multiple pages.

Zeile 1040Zeile 1047
			if($similar_thread['icon'] > 0 && $icon_cache[$similar_thread['icon']])
{
$icon = $icon_cache[$similar_thread['icon']];

			if($similar_thread['icon'] > 0 && $icon_cache[$similar_thread['icon']])
{
$icon = $icon_cache[$similar_thread['icon']];

 
				$icon['path'] = htmlspecialchars_uni($icon['path']);
$icon['name'] = htmlspecialchars_uni($icon['name']);

				$icon = "<img src=\"{$icon['path']}\" alt=\"{$icon['name']}\" />";
}
else

				$icon = "<img src=\"{$icon['path']}\" alt=\"{$icon['name']}\" />";
}
else