Skip to:
Content

BuddyPress.org

Ticket #5078: 5078.diff

File 5078.diff, 724 bytes (added by imath, 12 years ago)
  • bp-forums/deprecated/1.6.php

     
    5858
    5959                        // Now delete the bb-config.php file
    6060                        @unlink( ABSPATH . 'bb-config.php' );
     61                       
     62                        if( !empty( $_REQUEST['reinstall'] ) ) {
     63                                // refreshing active components
     64                                $active_components = buddypress()->active_components;
    6165
     66                                if( in_array( 'forums', array_keys( $active_components ) ) ) {
     67                                        unset( $active_components['forums'] );
     68                                        bp_update_option( 'bp-active-components', $active_components );
     69                                }
     70                        }
     71
    6272                        // show the updated wizard
    6373                        bp_forums_bbpress_install_wizard();
    6474