Skip to:
Content

BuddyPress.org


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.2/bp-forums/bp-forums-admin.php

    r3186 r4068  
    1212                <p><?php _e( 'Settings Saved.', 'buddypress' ) ?></p>
    1313            </div>
    14         <?php endif; ?>
    15 
    16         <?php
     14        <?php endif;
    1715
    1816        if ( isset( $_REQUEST['reinstall'] ) || !bp_forums_is_installed_correctly() ) {
    1917            update_site_option( 'bb-config-location', false );
    2018            bp_forums_bbpress_install_wizard();
    21         } else { ?>
    22             <p><?php printf( __( 'bbPress forum integration in BuddyPress has been set up correctly. If you are having problems you can <a href="%s" title="Reinstall bbPress">re-install</a>', 'buddypress' ), site_url( 'wp-admin/admin.php?page=bb-forums-setup&reinstall=1' ) ); ?>
     19        } else {
     20            $reinstall = network_admin_url( 'admin.php?page=bb-forums-setup&reinstall=1' ); ?>
     21
     22            <p><?php printf( __( 'bbPress forum integration in BuddyPress has been set up correctly. If you are having problems you can <a href="%s" title="Reinstall bbPress">re-install</a>', 'buddypress' ), $reinstall ); ?>
    2323            <p><?php _e( 'NOTE: The forums directory will only work if your bbPress tables are in the same database as your WordPress tables. If you are not using an existing bbPress install you can ignore this message.', 'buddypress' ) ?></p>
     24
    2425        <?php
    2526        }
     
    3031
    3132function bp_forums_bbpress_install_wizard() {
    32     $post_url = site_url( 'wp-admin/admin.php?page=bb-forums-setup' );
     33    $post_url = network_admin_url( 'admin.php?page=bb-forums-setup' );
    3334
    3435    switch( $_REQUEST['step'] ) {
     
    6869                        // Just write the contents to screen
    6970                        _e( 'A configuration file could not be created. No problem, but you will need to save the text shown below into a file named <code>bb-config.php</code> in the root directory of your WordPress installation before you can start using the forum functionality.', 'buddypress' );
    70                         ?><code style="display:block; margin-top: 30px;"><pre><?php echo htmlspecialchars( $result ) ?></pre></code><?php
     71                        ?><br /><textarea cols="110" rows="50" style="margin: 10px 0 50px 0;"><?php echo htmlspecialchars( $result ) ?></textarea><?php
    7172                        break;
    7273                }
Note: See TracChangeset for help on using the changeset viewer.