Changeset 8201 for trunk/bp-activity/bp-activity-classes.php
- Timestamp:
- 03/29/2014 12:40:28 AM (12 years ago)
- File:
-
- 1 edited
-
trunk/bp-activity/bp-activity-classes.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-classes.php
r8187 r8201 1008 1008 } 1009 1009 1010 // Calculate depth for each item 1011 foreach ( $ref as &$r ) { 1012 $depth = 1; 1013 $parent_id = $r->secondary_item_id; 1014 while ( $parent_id !== $r->item_id ) { 1015 $depth++; 1016 $parent_id = $ref[ $parent_id ]->secondary_item_id; 1017 } 1018 $r->depth = $depth; 1019 } 1020 1010 1021 // If we cache a value of false, it'll count as a cache 1011 1022 // miss the next time the activity comments are fetched.
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)