Vergleich forumdisplay.php - 1.6.11 - 1.6.15

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 577Zeile 577
}

// How many pages are there?

}

// 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 832Zeile 832
			{
unset($moved_threads[$thread['tid']]);
}

			{
unset($moved_threads[$thread['tid']]);
}

 
		}
}

if($mybb->settings['allowthreadratings'] != 0 && $foruminfo['allowtratings'] != 0 && $mybb->user['uid'] && !empty($threadcache) && $ratings == true)
{
// Check if we've rated threads on this page
// Guests get the pleasure of not being ID'd, but will be checked when they try and rate
$imp = implode(",", array_keys($threadcache));
$query = $db->simple_select("threadratings", "tid, uid", "tid IN ({$imp}) AND uid = '{$mybb->user['uid']}'");

while($rating = $db->fetch_array($query))
{
$threadcache[$rating['tid']]['rated'] = 1;

		}
}
}

// If user has moderation tools available, prepare the Select All feature

		}
}
}

// If user has moderation tools available, prepare the Select All feature

$num_results = $db->num_rows($query);
if(is_moderator($fid) && $num_results > 0)

if(is_moderator($fid) && $threadcount > $perpage)


{

{

	$lang->page_selected = $lang->sprintf($lang->page_selected, intval($num_results));

	$lang->page_selected = $lang->sprintf($lang->page_selected, count($threadcache));

	$lang->select_all = $lang->sprintf($lang->select_all, intval($threadcount));
$lang->all_selected = $lang->sprintf($lang->all_selected, intval($threadcount));
eval("\$selectall = \"".$templates->get("forumdisplay_inlinemoderation_selectall")."\";");

	$lang->select_all = $lang->sprintf($lang->select_all, intval($threadcount));
$lang->all_selected = $lang->sprintf($lang->all_selected, intval($threadcount));
eval("\$selectall = \"".$templates->get("forumdisplay_inlinemoderation_selectall")."\";");

Zeile 916Zeile 928
		$mybb->settings['maxmultipagelinks'] = 5;
}


		$mybb->settings['maxmultipagelinks'] = 5;
}


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

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

	{

	{

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

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

	}

foreach($threadcache as $thread)

	}

foreach($threadcache as $thread)