Changeset 1409

Show
Ignore:
Timestamp:
08/04/08 13:48:15 (4 months ago)
Author:
donncha
Message:

Added "UPLOADBLOGSDIR" constant so blogs.dir can be moved around

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-config-sample.php

    r1388 r1409  
    3737//define( 'SUNRISE', 'on' ); 
    3838 
     39// uncomment to move wp-content/blogs.dir elsewhere, else WP_CONTENT_DIR/blogs.dir is used. 
     40// define( "UPLOADBLOGSDIR", "/nfs/fileserver1" ); 
     41 
    3942// Uncomment and set this to a URL to redirect if a blog does not exist or is a 404 on the main blog. (Useful if signup is disabled) 
    4043// For example, browser will redirect to http://examples.com/ for the following: define( 'NOBLOGREDIRECT', 'http://example.com/' ); 
  • trunk/wp-settings.php

    r1386 r1409  
    237237wp_cache_init(); // need to init cache again after blog_id is set 
    238238 
    239 if( !defined( "UPLOADS" ) ) 
    240         define( "UPLOADS", "wp-content/blogs.dir/{$wpdb->blogid}/files/" ); 
     239if( !defined( "UPLOADS" ) ) { 
     240        if( defined( "UPLOADBLOGSDIR" ) ) { 
     241                define( "UPLOADS", UPLOADBLOGSDIR . "/{$wpdb->blogid}/files/" ); 
     242        } else { 
     243                define( "UPLOADS", WP_CONTENT_DIR . "/blogs.dir/{$wpdb->blogid}/files/" ); 
     244        } 
     245
    241246 
    242247require (ABSPATH . WPINC . '/plugin.php'); 
     
    315320$wpdb->hide_errors(); 
    316321if( defined( 'MUPLUGINDIR' ) == false )  
    317         define( 'MUPLUGINDIR', 'wp-content/mu-plugins' ); 
     322        define( 'MUPLUGINDIR', WP_CONTENT_DIR . '/mu-plugins' ); 
    318323 
    319324if( is_dir( ABSPATH . MUPLUGINDIR ) ) {