From 5f377b238dee9d239cc3acc9ff1c10fb5e4eb3bc Mon Sep 17 00:00:00 2001 From: donncha Date: Mon, 28 Jul 2008 15:11:07 +0000 Subject: 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 --- wp-load.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'wp-load.php') 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 wp-config.php file. I need this before we can get started. Need more help? We got it. You can create a wp-config.php file through a web interface, but this doesn't work for all server setups. The safest way is to manually create the file.

Create a Configuration File"/*/WP_I18N_NO_CONFIG*/, $path), /*WP_I18N_ERROR_TITLE*/"WordPress › Error"/*/WP_I18N_ERROR_TITLE*/); + wp_die(sprintf(/*WP_I18N_NO_CONFIG*/"There doesn't seem to be a wp-config.php file. I need this before we can get started.

Create a Configuration File"/*/WP_I18N_NO_CONFIG*/, $path), /*WP_I18N_ERROR_TITLE*/"WordPress › Error"/*/WP_I18N_ERROR_TITLE*/); } -- cgit