Show
Ignore:
Timestamp:
07/28/08 15:11:07 (4 months ago)
Author:
donncha
Message:

Removed setup-config.php and point "must create config file" message a main index page.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-load.php

    r1336 r1402  
    3737 
    3838        // Set a path for the link to the installer 
    39         if (strpos($_SERVER['PHP_SELF'], 'wp-admin') !== false) $path = ''; 
    40         else $path = 'wp-admin/'; 
     39        if (strpos($_SERVER['PHP_SELF'], 'wp-admin') !== false) $path = '../'; 
     40        else $path = ''; 
    4141 
    4242        // Die with an error message 
     
    4444        require_once( ABSPATH . '/wp-includes/functions.php' ); 
    4545        require_once( ABSPATH . '/wp-includes/plugin.php' ); 
    46         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*/); 
     46        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*/); 
    4747 
    4848}