From ca8181f03aafd35b01fa4172fa5fd3f8f9152645 Mon Sep 17 00:00:00 2001 From: donncha Date: Mon, 19 Jun 2006 17:43:41 +0000 Subject: Fix the first post (#30) git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@574 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- index.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'index.php') diff --git a/index.php b/index.php index e316dfd..31a1493 100644 --- a/index.php +++ b/index.php @@ -341,7 +341,7 @@ function printuserdetailsform( $weblog_title = 'My new Blog', $username = '', $e } function step3() { - global $wpdb; + global $wpdb, $current_site; $base = stripslashes( dirname( $_SERVER["SCRIPT_NAME"] ) ); if( $base != "/") { @@ -382,6 +382,11 @@ We hope you enjoy your new weblog. $pass = substr( md5( rand() ), 5, 12 ); $user_id = wpmu_create_user( 'admin', $pass, $email); + + $current_site->domain = $domain; + $current_site->path = $base; + $current_site->site_name = ucfirst( $domain ); + wpmu_create_blog( $domain, $base, $weblog_title, $user_id, array() ); update_blog_option( 1, 'template', 'home'); update_blog_option( 1, 'stylesheet', 'home'); -- cgit