summaryrefslogtreecommitdiffstats
path: root/wp-inst
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2005-08-31 11:29:43 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2005-08-31 11:29:43 +0000
commit122f51eaeaa3c4d0918db8f1d1920df5df06d72d (patch)
treeb454a35f1e892b7dd0eee063af1ad7a3444f9549 /wp-inst
parenta9e72f0794dfe341a216e74d2af2b54b371fee0a (diff)
Fixed problem with installing WPMU into folders.
Make sure "path" always has a slash at the end. git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@264 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-inst')
-rw-r--r--wp-inst/wp-includes/wpmu-functions.php11
1 files changed, 3 insertions, 8 deletions
diff --git a/wp-inst/wp-includes/wpmu-functions.php b/wp-inst/wp-includes/wpmu-functions.php
index 24fdc84..ea473ad 100644
--- a/wp-inst/wp-includes/wpmu-functions.php
+++ b/wp-inst/wp-includes/wpmu-functions.php
@@ -159,18 +159,13 @@ function createBlog( $domain, $path, $username, $weblog_title, $admin_email, $si
if ($installed) die(__('<h1>Already Installed</h1><p>You appear to have already installed WordPress. To reinstall please clear your old database tables first.</p>') . '</body></html>');
flush();
- if( $path == '/' ) {
- $slash = '';
- } else {
- $slash = $path;
- }
if( defined( "VHOST" ) && constant( "VHOST" ) == 'yes' ) {
- $url = "http://".$domain.$path.$slash;
+ $url = "http://".$domain.$path;
} else {
if( $blogname == 'main' ) {
- $url = "http://".$domain.$path.$slash;
+ $url = "http://".$domain.$path;
} else {
- $url = "http://".$domain.$path.$blogname.$slash;
+ $url = "http://".$domain.$path.$blogname;
}
}