Changeset 432 for trunk/bp-core/bp-core-avatars.php
- Timestamp:
- 10/24/2008 10:48:52 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/bp-core/bp-core-avatars.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-avatars.php
r394 r432 14 14 define( 'CORE_AVATAR_V2_W', 150 ); 15 15 define( 'CORE_AVATAR_V2_H', 150 ); 16 define( 'CORE_CROPPING_CANVAS_MAX', 450 ); 16 17 define( 'CORE_MAX_FILE_SIZE', get_site_option('fileupload_maxk') * 1024 ); 17 18 define( 'CORE_DEFAULT_AVATAR', site_url() . '/wp-content/mu-plugins/bp-xprofile/images/none.gif' ); … … 118 119 $uploadErrors = array( 119 120 0 => __("There is no error, the file uploaded with success", 'buddypress'), 120 1 => __(" The uploaded file exceeds the upload_max_filesize directive in php.ini", 'buddypress'),121 2 => __(" The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form", 'buddypress'),121 1 => __("Your image was bigger than the maximum allowed file size of: ", 'buddypress') . size_format(CORE_MAX_FILE_SIZE), 122 2 => __("Your image was bigger than the maximum allowed file size of: ", 'buddypress') . size_format(CORE_MAX_FILE_SIZE), 122 123 3 => __("The uploaded file was only partially uploaded", 'buddypress'), 123 124 4 => __("No file was uploaded", 'buddypress'), … … 235 236 } 236 237 237 function bp_core_resize_avatar($file, $size = CORE_CROPPING_CANVAS_MAX) { 238 function bp_core_resize_avatar( $file, $size = false ) { 239 240 if ( !$size ) 241 $size = CORE_CROPPING_CANVAS_MAX; 242 238 243 $canvas = wp_create_thumbnail( $file, $size ); 239 244
Note: See TracChangeset
for help on using the changeset viewer.