Changeset 53
- Timestamp:
- 02/28/2005 11:41:48 PM (20 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bb-admin/delete-post.php
r36 r53 14 14 bb_delete_post( $post_id ); 15 15 16 header( 'Location: ' . $_SERVER['HTTP_REFERER'] ); 16 $topic = get_topic( $post->topic_id ); 17 18 if ( $topic->topic_posts == 1 ) 19 $sendto = get_forum_link( $topic->forum_id ); 20 else 21 $sendto = $_SERVER['HTTP_REFERER']; 22 23 header( "Location: $sendto" ); 24 exit; 17 25 18 26 ?> -
trunk/bb-includes/template-functions.php
r51 r53 83 83 84 84 function forum_link() { 85 global $forum; 86 echo bb_apply_filters('forum_link', get_forum_link() ); 87 } 88 89 function get_forum_link( $id = 0 ) { 85 90 global $forum, $bb; 91 if ( $id ) 92 $forum = get_forum( $id ); 86 93 if ( $bb->mod_rewrite ) 87 94 $link = $bb->path . $forum->nice_name; … … 89 96 $link = $bb->path . "forum.php?id=$forum->forum_id"; 90 97 91 echo bb_apply_filters('forum_link', $link);98 return bb_apply_filters('get_forum_link', $link); 92 99 } 93 100
Note: See TracChangeset
for help on using the changeset viewer.