Skip to:
Content

BuddyPress.org

Changeset 4394


Ignore:
Timestamp:
05/19/2011 08:34:29 PM (15 years ago)
Author:
djpaul
Message:

Stop forum installer stripping a semicolon which led to a PHP parse error. Fixes #3155, props sushkov for initial patch

File:
1 edited

Legend:

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

    r4119 r4394  
    177177        $file = &$initial_write;
    178178
    179     $file = substr( $file, 0, -2 );
     179    $file = trim( $file );
     180    if ( '?>' == substr( $file, -2, 2 ) )
     181        $file = substr( $file, 0, -2 );
     182
    180183    $file .= "\n" .   '$bb->custom_user_table = \'' . $wpdb->users . '\';';
    181184    $file .= "\n" .   '$bb->custom_user_meta_table = \'' . $wpdb->usermeta . '\';';
Note: See TracChangeset for help on using the changeset viewer.