Make WordPress Core

Changeset 1281


Ignore:
Timestamp:
05/14/2004 08:46:05 PM (20 years ago)
Author:
rboren
Message:

Include wp-l10n.php after wp-config.php is included so that WPLANG is set. This means we cannot translate the "no wp-config.php" error.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-blog-header.php

    r1277 r1281  
    11<?php
    22
     3if (!file_exists(dirname(__FILE__).'/' . '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://wordpress.org/docs/faq/#wp-config'>We got it</a>. You can <a href='wp-admin/install-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.");
     5
     6require_once(dirname(__FILE__).'/' . '/wp-config.php');
     7
    38require_once(dirname(__FILE__).'/' . 'wp-includes/wp-l10n.php');
    4 
    5 if (!file_exists(dirname(__FILE__).'/' . 'wp-config.php'))
    6     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='wp-admin/install-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-config.php');
    99
    1010// Process PATH_INFO, if set.
Note: See TracChangeset for help on using the changeset viewer.