diff options
| author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2005-12-20 15:16:40 +0000 |
|---|---|---|
| committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2005-12-20 15:16:40 +0000 |
| commit | f5f757b468bfa4ea4bae7ba8ddaa082b8df54292 (patch) | |
| tree | e1b647d706520298f3c7d70ab55b9f1cea03d7d4 | |
| parent | cc83ad3fc583dc8492842143d030ebb15275b02b (diff) | |
| download | wordpress-mu-f5f757b468bfa4ea4bae7ba8ddaa082b8df54292.tar.gz wordpress-mu-f5f757b468bfa4ea4bae7ba8ddaa082b8df54292.tar.xz wordpress-mu-f5f757b468bfa4ea4bae7ba8ddaa082b8df54292.zip | |
Make sure blog 1 isn't overwritten
small fixes
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@478 7be80a69-a1ef-0310-a953-fb0f7c49ff36
| -rw-r--r-- | wp-inst/wp-settings.php | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/wp-inst/wp-settings.php b/wp-inst/wp-settings.php index 8c35aaf..987b034 100644 --- a/wp-inst/wp-settings.php +++ b/wp-inst/wp-settings.php @@ -22,7 +22,7 @@ $HTTP_USER_AGENT = getenv('HTTP_USER_AGENT'); unset( $wp_filter, $cache_userdata, $cache_lastcommentmodified, $cache_lastpostdate, $cache_settings, $category_cache, $cache_categories ); if ( ! isset($blog_id) ) - $blog_id = 1; + $blog_id = 0; // Fix for IIS, which doesn't set REQUEST_URI if ( empty( $_SERVER['REQUEST_URI'] ) ) { @@ -75,6 +75,7 @@ $wpdb->site = $table_prefix . 'site'; $wpdb->sitemeta = $table_prefix . 'sitemeta'; $wpdb->sitecategories = $table_prefix . 'sitecategories'; + // find out what tables to use from $wpblog $wpdb->hide_errors(); @@ -82,7 +83,7 @@ $domain = addslashes($_SERVER['HTTP_HOST']); if( substr( $domain, 0, 4 ) == 'www.' ) $domain = substr( $domain, 4 ); if( substr( $domain, -3, 3 ) == ':80' ) - $domain = str_replace(":80", "", $domain); + $domain = str_replace(':80', '', $domain); function is_installed() { global $wpdb, $domain, $base; @@ -258,6 +259,12 @@ require (ABSPATH . WPINC . '/version.php'); require_once( ABSPATH . WPINC . '/wpmu-functions.php' ); +$current_site->site_name = get_site_option('site_name'); + +if( $current_site->site_name == false ) { + $current_site->site_name = ucfirst( $current_site->domain ); +} + if( defined( "WP_INSTALLING" ) == false ) { $locale = get_option( "WPLANG" ); if( $locale == false ) @@ -281,11 +288,11 @@ if( $is_archived == 'yes' ) { } if( $current_blog->archived == '1' ) { - die( "This blog has been archived or suspended." ); + die( 'This blog has been archived or suspended.' ); } if( $current_blog->spam == '1' ) { - die( "This blog has been archived or suspended." ); + die( 'This blog has been archived or suspended.' ); } /* |
