Changeset 783

Show
Ignore:
Timestamp:
09/28/06 23:02:02 (2 years ago)
Author:
donncha
Message:

Fix upload path
Fix die()

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-content/blogs.php

    r777 r783  
    99) { 
    1010        header("HTTP/1.1 404 Not Found"); 
    11         graceful_fail('404 — File not found.'); 
     11        die('404 — File not found.'); 
    1212} 
    1313 
     
    6969endif; 
    7070 
    71  
    7271$file = $_GET[ 'file' ]; 
    7372$file = constant( "ABSPATH" ) . constant( "UPLOADS" ) . $file; 
     
    7574if ( !is_file( $file ) ) { 
    7675        header("HTTP/1.1 404 Not Found"); 
    77         graceful_fail('404 — File not found.'); 
     76        die('404 — File not found.'); 
    7877} 
    7978 
     
    8281if ( in_array( preg_replace( '|.*\.(.*)$|', '$1', $file ), $never ) ) { 
    8382        header("HTTP/1.1 404 Not Found"); 
    84         graceful_fail('404 — File not found.'); 
     83        die('404 — File not found.'); 
    8584} 
    8685 
  • trunk/wp-settings.php

    r777 r783  
    142142wp_cache_init(); 
    143143 
    144 define( "UPLOADS", "wp-content/blogs.dir/{$wpdb->blogid}/files" ); 
     144define( "UPLOADS", "wp-content/blogs.dir/{$wpdb->blogid}/files/" ); 
    145145if( defined( "BLOGDEFINITION" ) && constant( "BLOGDEFINITION" ) == true ) 
    146146        return;