Changeset 2704 for trunk/bp-xprofile.php
- Timestamp:
- 02/12/2010 02:28:15 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-xprofile.php
r2695 r2704 74 74 if ( empty( $bp->option['bp-xprofile-db-version'] ) ) { 75 75 if ( !$wpdb->get_var( "SELECT id FROM {$bp->profile->table_name_groups} WHERE id = 1" ) ) 76 $sql[] = "INSERT INTO {$bp->profile->table_name_groups} VALUES ( 1, '" . $bp->option['bp-xprofile-base-group-name']. "', '', 0 );";76 $sql[] = "INSERT INTO {$bp->profile->table_name_groups} VALUES ( 1, '" . get_site_option( 'bp-xprofile-base-group-name' ) . "', '', 0 );"; 77 77 78 78 if ( !$wpdb->get_var( "SELECT id FROM {$bp->profile->table_name_fields} WHERE id = 1" ) ) { … … 80 80 id, group_id, parent_id, type, name, is_required, can_delete 81 81 ) VALUES ( 82 1, 1, 0, 'textbox', '" . $bp->option['bp-xprofile-fullname-field-name']. "', 1, 082 1, 1, 0, 'textbox', '" . get_site_option( 'bp-xprofile-fullname-field-name' ) . "', 1, 0 83 83 );"; 84 84 }
Note: See TracChangeset
for help on using the changeset viewer.