Skip to:
Content

BuddyPress.org

Ticket #2455: 2455.diff

File 2455.diff, 2.1 KB (added by francescolaffi, 15 years ago)
  • bp-forums-admin.php

    # This patch file was generated by NetBeans IDE
    # Following Index: paths are relative to: /Users/Francesco/NetBeansProjects/bp-branch-1.2/1.2/bp-forums
    # This patch can be applied using context Tools: Patch action on respective folder.
    # It uses platform neutral UTF-8 encoding and \n newlines.
    # Above lines and this line are ignored by the patching process.
     
    153153        }
    154154
    155155        $file = substr( $file, 0, -2 );
    156         $file .= "\n" .   '$bb->custom_user_table = "' . $wpdb->users . '";';
    157         $file .= "\n" .   '$bb->custom_user_meta_table = "' . $wpdb->usermeta . '";';
    158         $file .= "\n\n" . '$bb->uri = "' . BP_PLUGIN_URL . '/bp-forums/bbpress/";';
    159         $file .= "\n" .   '$bb->name = "' . get_blog_option( BP_ROOT_BLOG, 'name' ) . ' ' . __( 'Forums', 'buddypress' ) . '";';
     156        $file .= "\n" .   '$bb->custom_user_table = \'' . $wpdb->users . '\';';
     157        $file .= "\n" .   '$bb->custom_user_meta_table = \'' . $wpdb->usermeta . '\';';
     158        $file .= "\n\n" . '$bb->uri = \'' . BP_PLUGIN_URL . '/bp-forums/bbpress/\';';
     159        $file .= "\n" .   '$bb->name = \'' . get_blog_option( BP_ROOT_BLOG, 'name' ) . ' ' . __( 'Forums', 'buddypress' ) . '\';';
    160160
    161161        if ( bp_core_is_multisite() )
    162162                $file .= "\n" .   '$bb->wordpress_mu_primary_blog_id = ' . BP_ROOT_BLOG . ';';
    163163
    164164        if ( defined( 'AUTH_SALT' ) )
    165                 $file .= "\n\n" . 'define(\'BB_AUTH_SALT\', "' . addslashes( AUTH_SALT ) . '");';
     165                $file .= "\n\n" . 'define(\'BB_AUTH_SALT\', \'' . addslashes( AUTH_SALT ) . '\');';
    166166
    167167        if ( defined( 'LOGGED_IN_SALT' ) )
    168                 $file .= "\n" .   'define(\'BB_LOGGED_IN_SALT\', "' . addslashes( LOGGED_IN_SALT ) . '");';
     168                $file .= "\n" .   'define(\'BB_LOGGED_IN_SALT\', \'' . addslashes( LOGGED_IN_SALT ) . '\');';
    169169
    170170        if ( defined( 'SECURE_AUTH_SALT' ) )
    171                 $file .= "\n" .   'define(\'BB_SECURE_AUTH_SALT\', "' . addslashes( SECURE_AUTH_SALT ) . '");';
    172  No newline at end of file
     171                $file .= "\n" .   'define(\'BB_SECURE_AUTH_SALT\', \'' . addslashes( SECURE_AUTH_SALT ) . '\');';
     172 No newline at end of file
    173173
    174174        $file .= "\n\n" . 'define(\'WP_AUTH_COOKIE_VERSION\', 2);';