WordPress.org

Make WordPress Core

Changeset 4307


Ignore:
Timestamp:
10/04/06 05:32:18 (8 years ago)
Author:
markjaquith
Message:

missing wp-config.php error uses wp_die() now. props Nazgul. fixes #1936

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/install.php

    r4259 r4307  
    11<?php 
    22define('WP_INSTALLING', true); 
    3 if (!file_exists('../wp-config.php'))  
    4     die("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/Installing_WordPress#Step_3:_Set_up_wp-config.php'>We got it</a>. You can <a href='setup-config.php'>create a <code>wp-config.php</code> file through a web interface</a>, but this doesn't work for all server setups. The safest way is to manually create the file."); 
     3if (!file_exists('../wp-config.php')) { 
     4  require_once('../wp-includes/functions.php'); 
     5  wp_die("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/Installing_WordPress#Step_3:_Set_up_wp-config.php'>We got it</a>. You can <a href='setup-config.php'>create a <code>wp-config.php</code> file through a web interface</a>, but this doesn't work for all server setups. The safest way is to manually create the file.", "WordPress &rsaquo; Error"); 
     6} 
    57 
    68require_once('../wp-config.php'); 
  • trunk/wp-blog-header.php

    r3985 r4307  
    55    if ( strstr( $_SERVER['PHP_SELF'], 'wp-admin') ) $path = ''; 
    66    else $path = 'wp-admin/'; 
    7     die("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://wordpress.org/docs/faq/#wp-config'>We got it</a>. You can <a href='{$path}setup-config.php'>create a <code>wp-config.php</code> file through a web interface</a>, but this doesn't work for all server setups. The safest way is to manually create the file."); 
     7 
     8  require_once( dirname(__FILE__) . '/wp-includes/functions.php'); 
     9  wp_die("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://wordpress.org/docs/faq/#wp-config'>We got it</a>. You can <a href='{$path}setup-config.php'>create a <code>wp-config.php</code> file through a web interface</a>, but this doesn't work for all server setups. The safest way is to manually create the file.", "WordPress &rsaquo; Error"); 
    810} 
    911 
Note: See TracChangeset for help on using the changeset viewer.