Changeset 1714 for trunk/bp-xprofile.php
- Timestamp:
- 08/27/2009 05:43:08 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-xprofile.php
r1693 r1714 1 1 <?php 2 define ( 'BP_XPROFILE_DB_VERSION', '170 0' );2 define ( 'BP_XPROFILE_DB_VERSION', '1705' ); 3 3 4 4 /* Define the slug for the component */ … … 84 84 85 85 $sql[] = "INSERT INTO {$bp->profile->table_name_fields} ( 86 id, group_id, parent_id, type, name, description, is_required, field_order, option_order, order_by, is_public, can_delete86 id, group_id, parent_id, type, name, is_required, can_delete 87 87 ) VALUES ( 88 1, 1, 0, 'textbox', '" . get_site_option( 'bp-xprofile-fullname-field-name' ) . "', '', 1, 1, 0, '',1, 088 1, 1, 0, 'textbox', '" . get_site_option( 'bp-xprofile-fullname-field-name' ) . "', 1, 0 89 89 );"; 90 90 } … … 106 106 107 107 $sql[] = "CREATE TABLE {$bp->profile->table_name_wire} ( 108 id bigint(20) NOT NULL AUTO_INCREMENT ,108 id bigint(20) NOT NULL AUTO_INCREMENT PRIMARY KEY, 109 109 item_id bigint(20) NOT NULL, 110 110 user_id bigint(20) NOT NULL, 111 111 content longtext NOT NULL, 112 112 date_posted datetime NOT NULL, 113 PRIMARY KEY id (id),114 113 KEY item_id (item_id), 115 114 KEY user_id (user_id) … … 372 371 373 372 if ( !bp_core_avatar_handle_crop( array( 'item_id' => $bp->displayed_user->id, 'original_file' => $_POST['image_src'], 'crop_x' => $_POST['x'], 'crop_y' => $_POST['y'], 'crop_w' => $_POST['w'], 'crop_h' => $_POST['h'] ) ) ) 374 bp_core_add_message( __( 'There was a problem cropping your avatar, please try uploading it again', 'buddypress' ) );373 bp_core_add_message( __( 'There was a problem cropping your avatar, please try uploading it again', 'buddypress' ), 'error' ); 375 374 else 376 375 bp_core_add_message( __( 'Your new avatar was uploaded successfully!', 'buddypress' ) );
Note: See TracChangeset
for help on using the changeset viewer.