Skip to:
Content

bbPress.org


Ignore:
Timestamp:
10/10/2011 05:01:21 AM (15 years ago)
Author:
johnjamesjacoby
Message:

Introduce functions for topic/reply per-page settings, to prevent divide by zero errors if setting is saved as '0' string.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/bbp-includes/bbp-topic-template.php

    r3505 r3540  
    9494
    9595        // Topics per page
    96         'posts_per_page' => get_option( '_bbp_topics_per_page', 15 ),
     96        'posts_per_page' => bbp_get_topics_per_page(),
    9797
    9898        // Page Number
     
    679679            'base'      => $base,
    680680            'format'    => '',
    681             'total'     => ceil( (int) $total / (int) get_option( '_bbp_replies_per_page', 15 ) ),
     681            'total'     => ceil( (int) $total / (int) bbp_get_replies_per_page() ),
    682682            'current'   => 0,
    683683            'prev_next' => false,
Note: See TracChangeset for help on using the changeset viewer.