Changeset 1214
- Timestamp:
- 03/16/2009 11:42:05 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-forums/bp-forums-templatetags.php
r1145 r1214 92 92 } 93 93 94 function bp_has_topics( $topics_per_page = 10 ) {94 function bp_has_topics( $topics_per_page = 10, $forum_id = false ) { 95 95 global $forum_template, $bp; 96 96 global $group_obj; 97 97 98 $forum_id = groups_get_groupmeta( $group_obj->id, 'forum_id' ); 98 if ( !$forum_id ) 99 $forum_id = groups_get_groupmeta( $group_obj->id, 'forum_id' ); 99 100 100 101 if ( is_numeric( $forum_id ) ) … … 367 368 } 368 369 369 function bp_has_topic_posts( $posts_per_page = 10 ) {370 function bp_has_topic_posts( $posts_per_page = 10, $topic_id = false ) { 370 371 global $topic_template, $bp; 371 global $group_obj;372 373 $topic_id = $bp->action_variables[1];372 373 if ( !$topic_id ) 374 $topic_id = $bp->action_variables[1]; 374 375 375 376 if ( is_numeric( $topic_id ) )
Note: See TracChangeset
for help on using the changeset viewer.