Zeile 630 | Zeile 630 |
---|
// Lets see if this post is on the same page as the one we're viewing or not // if it isn't, redirect us
|
// Lets see if this post is on the same page as the one we're viewing or not // if it isn't, redirect us
|
if($perpage > 0 && (($postcounter) % $perpage) == 0)
| if($mybb->settings['postsperpage'] > 0)
|
{
|
{
|
$post_page = ($postcounter) / $mybb->settings['postsperpage'];
| $post_page = ceil(($postcounter + 1) / $mybb->settings['postsperpage']);
|
} else {
|
} else {
|
$post_page = (int)($postcounter / $mybb->settings['postsperpage']) + 1;
| $post_page = 1;
|
}
if($post_page > $mybb->get_input('from_page', MyBB::INPUT_INT))
| }
if($post_page > $mybb->get_input('from_page', MyBB::INPUT_INT))
|
Zeile 1179 | Zeile 1179 |
---|
}
eval("\$attachbox = \"".$templates->get("post_attachments")."\";");
|
}
eval("\$attachbox = \"".$templates->get("post_attachments")."\";");
|
| } else { $attachbox = '';
|
}
// If the user is logged in, provide a save draft button.
| }
// If the user is logged in, provide a save draft button.
|