Cleaning up blogfilename.

git-svn-id: https://develop.svn.wordpress.org/trunk@1997 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg
2004-12-24 01:34:47 +00:00
parent c12f7caf57
commit 3ebf5a36e2
10 changed files with 20 additions and 21 deletions

View File

@@ -149,7 +149,7 @@ class wp_xmlrpc_server extends IXR_Server {
$struct = array(
'isAdmin' => $is_admin,
'url' => get_settings('home') .'/'.get_settings('blogfilename'),
'url' => get_settings('home') . '/',
'blogid' => '1',
'blogName' => get_settings('blogname')
);
@@ -281,7 +281,7 @@ class wp_xmlrpc_server extends IXR_Server {
}
/* warning: here we make the assumption that the weblog's URI is on the same server */
$filename = get_settings('home').'/'.get_settings('blogfilename');
$filename = get_settings('home') . '/';
$filename = preg_replace('#http://.+?/#', $_SERVER['DOCUMENT_ROOT'].'/', $filename);
$f = fopen($filename, 'r');
@@ -315,7 +315,7 @@ class wp_xmlrpc_server extends IXR_Server {
}
/* warning: here we make the assumption that the weblog's URI is on the same server */
$filename = get_settings('home').'/'.get_settings('blogfilename');
$filename = get_settings('home') . '/';
$filename = preg_replace('#http://.+?/#', $_SERVER['DOCUMENT_ROOT'].'/', $filename);
if ($f = fopen($filename, 'w+')) {