Changeset 1407

Show
Ignore:
Timestamp:
08/04/08 11:54:57 (4 months ago)
Author:
donncha
Message:

Search for wp-config.php above document root.

Files:

Legend:

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

    r1328 r1407  
    77 
    88if ( !isset($wp_did_header) ) { 
    9         if ( !file_exists( dirname(__FILE__) . '/wp-config.php') ) { 
     9        if ( !file_exists( dirname(__FILE__) . '/wp-config.php') && !file_exists( dirname( dirname(__FILE__) ) . '/wp-config.php')) { 
    1010                if (strpos($_SERVER['PHP_SELF'], 'wp-admin') !== false) $path = ''; 
    1111                else $path = 'wp-admin/';