Changeset 1127
- Timestamp:
- 10/24/07 08:11:47 (1 year ago)
- Files:
-
- trunk/wp-admin/includes/mu.php (modified) (1 diff)
- trunk/wp-admin/includes/upload.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-admin/includes/mu.php
r1126 r1127 333 333 if( ($spaceAllowed - $size) <= 0 ) { 334 334 define( 'DISABLE_UPLOADS', true ); 335 define( 'DISABLE_UPLOADS_MESSAGE', 'Sorry, you must delete files before you can upload any more, or <a target="_new" href="paid-upgrades.php">buy more space</a>');335 define( 'DISABLE_UPLOADS_MESSAGE', __('Sorry, you must delete files before you can upload any more.') ); 336 336 } 337 337 } trunk/wp-admin/includes/upload.php
r1125 r1127 208 208 case 'upload' : 209 209 if ( defined('DISABLE_UPLOADS') && constant('DISABLE_UPLOADS') ) { 210 if ( defined('DISABLE_UPLOADS_MESSAGE') && constant('DISABLE_UPLOADS_MESSAGE') ) {211 returndie(__(DISABLE_UPLOADS_MESSAGE));212 } else {213 returndie(__('Sorry, uploads are temporarily disabled.'));214 }210 if ( defined('DISABLE_UPLOADS_MESSAGE') && constant('DISABLE_UPLOADS_MESSAGE') ) { 211 wp_die(__(DISABLE_UPLOADS_MESSAGE)); 212 } else { 213 wp_die(__('Sorry, uploads are temporarily disabled.')); 214 } 215 215 } 216 216 global $from_tab, $post_id, $style;
