Heyuri / kokonotsuba

Heyuri's BBS software
Other
23 stars 14 forks source link

$REPLYNUM doesn't go more than 5 #137

Closed kaguy4 closed 2 months ago

kaguy4 commented 2 months ago

I dunno how related these are... From lib_template.php L41: '{$REPLYNUM}' => $numberOfReplies - 1,

From lib_template.php L23: function bindOPValuesToTemplate($no, $sub, $name, $now, $category, $QUOTEBTN, $REPLYBTN, $IMG_BAR, $imgsrc, $fname, $fsize, $imgw, $imgh, $filelink, $numberOfReplies, $WARN_OLD, $WARN_BEKILL, $WARN_ENDREPLY, $WARN_HIDEPOST, $com, $POSTFORM_EXTRA, $THREADNAV, $BACKLINKS, $resno) {

From koko.php L374: $arrLabels = bindOPValuesToTemplate($no, $sub, $name, $now, $category, $QUOTEBTN, $REPLYBTN, $IMG_BAR, $imgsrc, $fname, $imgsize, $imgw, $imgh, $imageURL, $posts_count, $WARN_OLD, $WARN_BEKILL, $WARN_ENDREPLY, $WARN_HIDEPOST, $com, $POSTFORM_EXTRA, $THREADNAV, $BACKLINKS, $resno);

From koko.php L270: $posts_count = count($posts); // Number of cycles

kaguy4 commented 2 months ago

Apparently it depends on RE_DEF, which was set to 5. Increasing it temporarily "solves" teh issue but it shouldn't depend on that

kaguy4 commented 2 months ago

fixed by https://github.com/Heyuri/kokonotsuba/commit/9056dd224df5c990b1e5af4d689e6560fc213337