Changeset 1538
- Timestamp:
- 06/10/2009 08:49:07 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
-
bp-activity/bp-activity-templatetags.php (modified) (1 diff)
-
bp-blogs/bp-blogs-templatetags.php (modified) (4 diffs)
-
bp-core/bp-core-templatetags.php (modified) (1 diff)
-
bp-forums/bp-forums-templatetags.php (modified) (2 diffs)
-
bp-friends/bp-friends-templatetags.php (modified) (1 diff)
-
bp-groups/bp-groups-templatetags.php (modified) (4 diffs)
-
bp-messages/bp-messages-templatetags.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-templatetags.php
r1532 r1538 34 34 $this->activities = bp_activity_get_friends_activity( $user_id, $max, $timeframe, false, $this->pag_num, $this->pag_page ); 35 35 36 if ( !$max )36 if ( !$max || $max >= (int)$this->activities['total'] ) 37 37 $this->total_activity_count = (int)$this->activities['total']; 38 38 else -
trunk/bp-blogs/bp-blogs-templatetags.php
r1449 r1538 222 222 } 223 223 224 if ( !$max )224 if ( !$max || $max >= (int)$this->blogs['count'] ) 225 225 $this->total_blog_count = (int)$this->blogs['count']; 226 226 else … … 398 398 } 399 399 400 if ( !$max )400 if ( !$max || $max >= (int)$this->posts['count'] ) 401 401 $this->total_post_count = (int)$this->posts['count']; 402 402 else … … 832 832 } 833 833 834 if ( !$max )834 if ( !$max || $max >= (int)$this->comments['count'] ) 835 835 $this->total_comment_count = (int)$this->comments['count']; 836 836 else … … 1085 1085 } 1086 1086 1087 if ( !$max )1087 if ( !$max || $max >= (int)$this->blogs['total'] ) 1088 1088 $this->total_blog_count = (int)$this->blogs['total']; 1089 1089 else -
trunk/bp-core/bp-core-templatetags.php
r1518 r1538 798 798 } 799 799 800 if ( !$max )800 if ( !$max || $max >= (int)$this->members['total'] ) 801 801 $this->total_member_count = (int)$this->members['total']; 802 802 else -
trunk/bp-forums/bp-forums-templatetags.php
r1448 r1538 31 31 $this->total_topic_count = 0; 32 32 } else { 33 if ( !$max ) 34 $this->total_topic_count = count( bp_forums_get_topics( $forum_id ) ); 33 $forum_count = count( bp_forums_get_topics( $forum_id ) ); 34 35 if ( !$max || $max >= $forum_count ) 36 $this->total_topic_count = $forum_count; 35 37 else 36 38 $this->total_topic_count = (int)$max; … … 395 397 $this->total_post_count = 0; 396 398 } else { 397 if ( !$max )399 if ( !$max || $max >= (int) $forum_template->topic->topic_posts ) 398 400 $this->total_post_count = (int) $forum_template->topic->topic_posts; 399 401 else -
trunk/bp-friends/bp-friends-templatetags.php
r1473 r1538 47 47 $this->friendship_count = count($this->friendships); 48 48 } else { 49 if ( !$max )49 if ( !$max || $max >= (int)$this->friendships['total'] ) 50 50 $this->total_friend_count = (int)$this->friendships['total']; 51 51 else -
trunk/bp-groups/bp-groups-templatetags.php
r1529 r1538 468 468 $this->group_count = 1; 469 469 } else { 470 if ( !$max )470 if ( !$max || $max >= (int)$this->groups['total'] ) 471 471 $this->total_group_count = (int)$this->groups['total']; 472 472 else … … 1642 1642 $this->members = BP_Groups_Member::get_all_for_group( $group_id, $this->pag_num, $this->pag_page, $exclude_admins_mods, $exclude_banned ); 1643 1643 1644 if ( !$max )1644 if ( !$max || $max >= (int)$this->members['count'] ) 1645 1645 $this->total_member_count = (int)$this->members['count']; 1646 1646 else … … 1918 1918 } 1919 1919 1920 if ( !$max )1920 if ( !$max || $max >= (int)$this->groups['total'] ) 1921 1921 $this->total_group_count = (int)$this->groups['total']; 1922 1922 else … … 2223 2223 $this->requests = BP_Groups_Group::get_membership_requests( $group_id, $this->pag_num, $this->pag_page ); 2224 2224 2225 if ( !$max )2225 if ( !$max || $max >= (int)$this->requests['total'] ) 2226 2226 $this->total_request_count = (int)$this->requests['total']; 2227 2227 else -
trunk/bp-messages/bp-messages-templatetags.php
r1534 r1538 31 31 $this->total_thread_count = 0; 32 32 } else { 33 if ( !$max ) { 33 $total_notice_count = BP_Messages_Notice::get_total_notice_count(); 34 35 if ( !$max || $max >= (int)$total_notice_count ) { 34 36 if ( 'notices' == $this->box ) 35 $this->total_thread_count = BP_Messages_Notice::get_total_notice_count();37 $this->total_thread_count = (int)$total_notice_count; 36 38 else 37 $this->total_thread_count = BP_Messages_Thread::get_total_threads_for_user( $this->user_id, $this->box, $type );39 $this->total_thread_count = (int)BP_Messages_Thread::get_total_threads_for_user( $this->user_id, $this->box, $type ); 38 40 } else { 39 41 $this->total_thread_count = (int)$max;
Note: See TracChangeset
for help on using the changeset viewer.