*/}}
Browse Source

Fix recent page skipping

Yiming Wu 2 years ago
parent
commit
20a006ebe2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      index.php

+ 1 - 1
index.php

@@ -1345,13 +1345,13 @@ header{padding-top:0.3em;}
                     }
                     $i = 0;
                     foreach(array_reverse($this->Posts) as &$p){
-                        if($i < $this->PostsPerPage * $this->CurrentOffset) {$i++; continue;}
                         if(in_array($p['id'],[$this->SpecialPinned,$this->SpecialFooter,$this->SpecialFooter2,$this->SpecialNavigation]))
                             continue;
                         if(isset($p['tid'])){
                             if(isset($p['tid']['displayed'])) continue;
                             $p['tid']['displayed'] = True;
                         }
+                        if($i < $this->PostsPerPage * $this->CurrentOffset) {$i++; continue;}
                         $this->MakeSinglePost($p, true, false, NULL, false, true, false, false, false, false);
                         $i++;
                         if($i >= $this->PostsPerPage * (1+$this->CurrentOffset)) {break;}