Skip to:
Content

BuddyPress.org

Changeset 1753


Ignore:
Timestamp:
09/01/2009 06:40:47 PM (16 years ago)
Author:
apeatling
Message:

Fixes #937, #938

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-forums/bp-forums-admin.php

    r1625 r1753  
    1616        <?php
    1717       
    18         if ( isset( $_REQUEST['reinstall']) || !bp_forums_is_installed_correctly() )
     18        if ( isset( $_REQUEST['reinstall'] ) || !bp_forums_is_installed_correctly() )
    1919            bp_forums_bbpress_install_wizard();
    2020        else { ?>
     
    3131
    3232    switch( $_REQUEST['step'] ) {       
    33         case 'existing': 
     33        case 'existing':
    3434            if ( 1 == (int)$_REQUEST['doinstall'] ) {
    35                 if ( !bp_forums_configure_existing_install() )
     35                if ( !bp_forums_configure_existing_install() ) {
    3636                    _e( 'The bb-config.php file was not found at that location, please try again.', 'buddypress' );
    37             }
     37                } else {
     38                    ?>
     39                    <h3><?php _e( 'Forums were set up correctly using your existing bbPress install!') ?></h3>
     40                    <p><?php _e( 'BuddyPress will now use its internal copy of bbPress to run the forums on your site. If you wish, you can remove your old bbPress installation files, as long as you keep the bb-config.php file in the same location.' ) ?></p><?php
     41                }
     42            } else {
    3843                ?>
    3944                    <form action="" method="post">
     
    4752                    </form>
    4853                <?php   
     54            }
    4955        break;
    50 
     56       
    5157        case 'new':
    5258            if ( 1 == (int)$_REQUEST['doinstall'] ) {
     
    8995    check_admin_referer( 'bp_forums_existing_install_init' );
    9096   
     97    /* Sanitize $_REQUEST['bbconfigloc'] */
     98    $_REQUEST['bbconfigloc'] = apply_filters( 'bp_forums_bbconfig_location', $_REQUEST['bbconfigloc'] );
     99   
    91100    if ( false === strpos( $_REQUEST['bbconfigloc'], 'bb-config.php' ) ) {
    92101        if ( '/' != substr( $_REQUEST['bbconfigloc'], -1, 1 ) )
Note: See TracChangeset for help on using the changeset viewer.