summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2006-06-19 17:43:41 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2006-06-19 17:43:41 +0000
commitca8181f03aafd35b01fa4172fa5fd3f8f9152645 (patch)
tree08a76aa507433a7433fb0f3ef0009145ff715693 /index.php
parentc04e27ce6aeb895c0d2e3080aba67ced22ff84bb (diff)
downloadwordpress-mu-ca8181f03aafd35b01fa4172fa5fd3f8f9152645.tar.gz
wordpress-mu-ca8181f03aafd35b01fa4172fa5fd3f8f9152645.tar.xz
wordpress-mu-ca8181f03aafd35b01fa4172fa5fd3f8f9152645.zip
Fix the first post (#30)
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@574 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'index.php')
-rw-r--r--index.php7
1 files changed, 6 insertions, 1 deletions
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');