Changeset 3911
- Timestamp:
- 01/24/2011 02:34:53 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-forums/bp-forums-template.php
r3910 r3911 1101 1101 1102 1102 if ( $bp->is_single_item ) 1103 $permalink = $bp->root_domain . '/' . $bp->current_component . '/' . $bp->current_item . '/';1103 $permalink = trailingslashit( $bp->root_domain . '/' . $bp->current_component . '/' . $bp->current_item ); 1104 1104 else 1105 $permalink = $bp->root_domain . $bp->current_component . '/' . $bp->current_action . '/';1106 1107 return apply_filters( 'bp_get_forum_permalink', $permalink . 'forum');1105 $permalink = trailingslashit( $bp->root_domain . $bp->current_component . '/' . $bp->current_action ); 1106 1107 return apply_filters( 'bp_get_forum_permalink', trailingslashit( $permalink . 'forum' ) ); 1108 1108 } 1109 1109 … … 1114 1114 global $bp; 1115 1115 1116 return apply_filters( 'bp_get_forum_directory_permalink', $bp->root_domain . '/' . $bp->forums->slug);1116 return apply_filters( 'bp_get_forum_directory_permalink', trailingslashit( $bp->root_domain . '/' . $bp->forums->root_slug ) ); 1117 1117 } 1118 1118 … … 1120 1120 $defaults = array( 1121 1121 'smallest' => '10', 1122 'largest' => '42',1123 'sizing' => 'px',1124 'limit' => '50'1122 'largest' => '42', 1123 'sizing' => 'px', 1124 'limit' => '50' 1125 1125 ); 1126 1126
Note: See TracChangeset
for help on using the changeset viewer.