Changeset 1409
- Timestamp:
- 08/04/08 13:48:15 (4 months ago)
- Files:
-
- trunk/wp-config-sample.php (modified) (1 diff)
- trunk/wp-settings.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-config-sample.php
r1388 r1409 37 37 //define( 'SUNRISE', 'on' ); 38 38 39 // uncomment to move wp-content/blogs.dir elsewhere, else WP_CONTENT_DIR/blogs.dir is used. 40 // define( "UPLOADBLOGSDIR", "/nfs/fileserver1" ); 41 39 42 // 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) 40 43 // For example, browser will redirect to http://examples.com/ for the following: define( 'NOBLOGREDIRECT', 'http://example.com/' ); trunk/wp-settings.php
r1386 r1409 237 237 wp_cache_init(); // need to init cache again after blog_id is set 238 238 239 if( !defined( "UPLOADS" ) ) 240 define( "UPLOADS", "wp-content/blogs.dir/{$wpdb->blogid}/files/" ); 239 if( !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 } 241 246 242 247 require (ABSPATH . WPINC . '/plugin.php'); … … 315 320 $wpdb->hide_errors(); 316 321 if( defined( 'MUPLUGINDIR' ) == false ) 317 define( 'MUPLUGINDIR', 'wp-content/mu-plugins' );322 define( 'MUPLUGINDIR', WP_CONTENT_DIR . '/mu-plugins' ); 318 323 319 324 if( is_dir( ABSPATH . MUPLUGINDIR ) ) {
