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.
git-svn-id: https://develop.svn.wordpress.org/trunk@1281 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
17ab4425d2
commit
66be4943f9
@ -1,12 +1,12 @@
|
||||
<?php
|
||||
|
||||
require_once(dirname(__FILE__).'/' . 'wp-includes/wp-l10n.php');
|
||||
|
||||
if (!file_exists(dirname(__FILE__).'/' . 'wp-config.php'))
|
||||
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."));
|
||||
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.");
|
||||
|
||||
require_once(dirname(__FILE__).'/' . '/wp-config.php');
|
||||
|
||||
require_once(dirname(__FILE__).'/' . 'wp-includes/wp-l10n.php');
|
||||
|
||||
// Process PATH_INFO, if set.
|
||||
$path_info = array();
|
||||
if (! empty($_SERVER['PATH_INFO'])) {
|
||||
|
Loading…
Reference in New Issue
Block a user