Changeset 136
- Timestamp:
- 06/09/2005 10:41:09 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/bb-includes/functions.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bb-includes/functions.php
r130 r136 47 47 } 48 48 49 function get_latest_topics( $forum = 0, $page = 0, $exclude = '' ) { 49 function get_latest_topics( $forum = 0, $page = 0, $exclude = '', $with_stick = '' ) { 50 // with_stick defaults: get stickies on everything but forum page. with_stick accepts: boolean 50 51 global $bbdb, $bb; 51 52 $where = $limit = ''; … … 54 55 if ( !empty( $exclude ) ) 55 56 $where .= " AND forum_id NOT IN ('$exclude') "; 57 if ( false === $with_stick || ( is_forum() && $with_stick !== true ) ) 58 $where .= " AND topic_sticky <> '1' "; 56 59 $limit = bb_get_option('page_topics'); 57 60 if ( $page ) … … 60 63 } 61 64 62 function get_sticky_topics( $forum = 0, $page = 0 , $exclude = '') {65 function get_sticky_topics( $forum = 0, $page = 0 ) { 63 66 global $bbdb, $bb; 64 67 $where = '';
Note: See TracChangeset
for help on using the changeset viewer.