Changeset 9698 for trunk/src/bp-core/bp-core-avatars.php
- Timestamp:
- 04/05/2015 06:18:13 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-avatars.php
r9624 r9698 32 32 if ( !defined( 'BP_AVATAR_ORIGINAL_MAX_FILESIZE' ) ) { 33 33 34 if ( !isset( $bp->site_options['fileupload_maxk'] ) ) { 34 $fileupload_maxk = bp_core_get_root_option( 'fileupload_maxk' ); 35 if ( '' === $fileupload_maxk ) { 35 36 define( 'BP_AVATAR_ORIGINAL_MAX_FILESIZE', 5120000 ); // 5mb 36 37 } else { 37 define( 'BP_AVATAR_ORIGINAL_MAX_FILESIZE', $ bp->site_options['fileupload_maxk']* 1024 );38 define( 'BP_AVATAR_ORIGINAL_MAX_FILESIZE', $fileupload_maxk * 1024 ); 38 39 } 39 40 }
Note: See TracChangeset
for help on using the changeset viewer.