Zeile 119 | Zeile 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 253 | Zeile 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 264 | Zeile 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; }
|