Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/19/2011 09:57:15 PM (11 years ago)
Author:
djpaul
Message:

Redirect to group's forum page after deleting a topic. Fixes #3066

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-groups/bp-groups-screens.php

    r4147 r4219  
    212212
    213213                if ( !groups_delete_group_forum_topic( $topic_id ) )
    214                     bp_core_add_message( __( 'There was an error deleting the topic', 'buddypress'), 'error' );
    215                 else
     214                    bp_core_add_message( __( 'There was an error deleting the topic', 'buddypress' ), 'error' );
     215                else
     216                    bp_core_add_message( __( 'The topic was deleted successfully', 'buddypress' ) );
    216217
    217218                do_action( 'groups_delete_forum_topic', $topic_id );
    218                 bp_core_redirect( wp_get_referer() );
     219                bp_core_redirect( bp_get_group_permalink( $bp->groups->current_group ) . 'forum/' );
    219220            }
    220221
Note: See TracChangeset for help on using the changeset viewer.