Changeset 1127

Show
Ignore:
Timestamp:
10/24/07 08:11:47 (1 year ago)
Author:
donncha
Message:

gettext the disable upload message
Remove mention of paid-upgrades.php, props momo360modena, fixes #470

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-admin/includes/mu.php

    r1126 r1127  
    333333        if( ($spaceAllowed - $size) <= 0 ) { 
    334334                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.') ); 
    336336        } 
    337337} 
  • trunk/wp-admin/includes/upload.php

    r1125 r1127  
    208208        case 'upload' : 
    209209                if ( defined('DISABLE_UPLOADS') && constant('DISABLE_UPLOADS') ) { 
    210                         if ( defined('DISABLE_UPLOADS_MESSAGE') && constant('DISABLE_UPLOADS_MESSAGE') ) { 
    211                                 return die(__(DISABLE_UPLOADS_MESSAGE)); 
    212                         } else { 
    213                                 return die(__('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                       
    215215                } 
    216216                global $from_tab, $post_id, $style;