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: http://svn.automattic.com/wordpress/trunk@1281 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
812ad5dbc3
commit
65d556d1da
|
@ -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