summaryrefslogtreecommitdiffstats
path: root/wp-load.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2008-07-28 15:11:07 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2008-07-28 15:11:07 +0000
commit5f377b238dee9d239cc3acc9ff1c10fb5e4eb3bc (patch)
tree01c117dcad2ccc1bb405ebf5af17debe9975685a /wp-load.php
parent3b57af97ef49e321fe20a9cf72ad66c19871b129 (diff)
downloadwordpress-mu-5f377b238dee9d239cc3acc9ff1c10fb5e4eb3bc.tar.gz
wordpress-mu-5f377b238dee9d239cc3acc9ff1c10fb5e4eb3bc.tar.xz
wordpress-mu-5f377b238dee9d239cc3acc9ff1c10fb5e4eb3bc.zip
Removed setup-config.php and point "must create config file" message a main index page.
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1402 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-load.php')
-rw-r--r--wp-load.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/wp-load.php b/wp-load.php
index 423edf5..3627168 100644
--- a/wp-load.php
+++ b/wp-load.php
@@ -36,14 +36,14 @@ if ( file_exists( ABSPATH . 'wp-config.php') ) {
// A config file doesn't exist
// Set a path for the link to the installer
- if (strpos($_SERVER['PHP_SELF'], 'wp-admin') !== false) $path = '';
- else $path = 'wp-admin/';
+ if (strpos($_SERVER['PHP_SELF'], 'wp-admin') !== false) $path = '../';
+ else $path = '';
// Die with an error message
require_once( ABSPATH . '/wp-includes/classes.php' );
require_once( ABSPATH . '/wp-includes/functions.php' );
require_once( ABSPATH . '/wp-includes/plugin.php' );
- wp_die(sprintf(/*WP_I18N_NO_CONFIG*/"There doesn't seem to be a <code>wp-config.php</code> file. I need this before we can get started. Need more help? <a href='http://codex.wordpress.org/Editing_wp-config.php'>We got it</a>. You can create a <code>wp-config.php</code> file through a web interface, but this doesn't work for all server setups. The safest way is to manually create the file.</p><p><a href='%ssetup-config.php' class='button'>Create a Configuration File</a>"/*/WP_I18N_NO_CONFIG*/, $path), /*WP_I18N_ERROR_TITLE*/"WordPress &rsaquo; Error"/*/WP_I18N_ERROR_TITLE*/);
+ wp_die(sprintf(/*WP_I18N_NO_CONFIG*/"There doesn't seem to be a <code>wp-config.php</code> file. I need this before we can get started.<p><a href='%sindex.php' class='button'>Create a Configuration File</a>"/*/WP_I18N_NO_CONFIG*/, $path), /*WP_I18N_ERROR_TITLE*/"WordPress &rsaquo; Error"/*/WP_I18N_ERROR_TITLE*/);
}