Fix post pagebreak once again
The first article of a page was also displayed on the bottom of the previous one. This commit fixes this behavior.
This commit is contained in:
parent
3587f38bac
commit
f364393124
2
blog.php
2
blog.php
@ -254,6 +254,7 @@
|
|||||||
if ($v->isPublic) {
|
if ($v->isPublic) {
|
||||||
if (!isset($tagSearch) || in_array($tagSearch, $v->tags)) {
|
if (!isset($tagSearch) || in_array($tagSearch, $v->tags)) {
|
||||||
if ($i++ >= $postsSkip) {
|
if ($i++ >= $postsSkip) {
|
||||||
|
if ($morePosts == 0) {
|
||||||
if (isset($CMS_RSS)) {
|
if (isset($CMS_RSS)) {
|
||||||
if (!isset($latestDisplayedPost)) {
|
if (!isset($latestDisplayedPost)) {
|
||||||
$latestDisplayedPost = $v->ctime;
|
$latestDisplayedPost = $v->ctime;
|
||||||
@ -276,6 +277,7 @@
|
|||||||
echo "</div>";
|
echo "</div>";
|
||||||
echo '<hr class="postSeparator">';
|
echo '<hr class="postSeparator">';
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (($i % POSTS_PAGE_SIZE) == 0) {
|
if (($i % POSTS_PAGE_SIZE) == 0) {
|
||||||
$morePosts = 1;
|
$morePosts = 1;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user