Skip to:
Content

BuddyPress.org

Ticket #3322: gistfile1.diff

File gistfile1.diff, 697 bytes (added by sushkov, 8 years ago)
  • bp-core/admin/bp-core-admin.php

    diff --git a/bp-core/admin/bp-core-admin.php b/bp-core/admin/bp-core-admin.php
    index 4061f84..16ed27c 100644
    function bp_core_admin_component_setup_handler() { 
    170170
    171171                // Settings form submitted, now save the settings. First, set active components
    172172                if ( isset( $_POST['bp_components'] ) ) {
     173                        require_once( BP_PLUGIN_DIR . '/bp-core/admin/bp-core-update.php' );
     174                        // Save settings and upgrade schema
    173175                        $bp->active_components = stripslashes_deep( $_POST['bp_components'] );
     176                        bp_core_install( $bp->active_components );
    174177                        bp_update_option( 'bp-active-components', $bp->active_components );
    175178                }
    176179