Vergleich archive/index.php - 1.6.10 - 1.6.17

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * $Id: index.php 5790 2012-04-19 13:52:50Z Tomm $

 * $Id$

 */

define("IN_MYBB", 1);

 */

define("IN_MYBB", 1);

Zeile 119Zeile 119
		archive_header($thread['subject'], $thread['subject'], $mybb->settings['bburl']."/".get_thread_link($thread['tid'], $page));

$plugins->run_hooks("archive_thread_start");

		archive_header($thread['subject'], $thread['subject'], $mybb->settings['bburl']."/".get_thread_link($thread['tid'], $page));

$plugins->run_hooks("archive_thread_start");

 
		
if(!$mybb->settings['postsperpage'] || (int)$mybb->settings['postsperpage'] < 1)
{
$mybb->settings['postsperpage'] = 20;
}


// Paginate this thread
$perpage = $mybb->settings['postsperpage'];


// Paginate this thread
$perpage = $mybb->settings['postsperpage'];

Zeile 253Zeile 258
		build_forum_breadcrumb($forum['fid'], 1);

// No threads and not a category? Error!

		build_forum_breadcrumb($forum['fid'], 1);

// No threads and not a category? Error!

		if($threadcount < 1 && $forum['type'] != 'c')

		if(($threadcount < 1 || $forumpermissions['canviewthreads'] != 1) && $forum['type'] != 'c')

		{
archive_header(strip_tags($forum['name']), $forum['name'], $mybb->settings['bburl']."/".get_forum_link($id, $page)."");
archive_error($lang->error_nothreads);

		{
archive_header(strip_tags($forum['name']), $forum['name'], $mybb->settings['bburl']."/".get_forum_link($id, $page)."");
archive_error($lang->error_nothreads);

Zeile 264Zeile 269

$plugins->run_hooks("archive_forum_start");



$plugins->run_hooks("archive_forum_start");


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

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

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

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