| 35 | | if( $current_site == null && defined( "WP_INSTALLING" ) == false ) |
|---|
| 36 | | die( "No WPMU site defined on this host." ); |
|---|
| | 31 | if( $current_site == null && defined( "WP_INSTALLING" ) == false ) { |
|---|
| | 32 | $sites = $wpdb->get_results( "SELECT * FROM $wpdb->site" ); |
|---|
| | 33 | if( count( $sites ) == 1 ) { |
|---|
| | 34 | $current_site = $sites[0]; |
|---|
| | 35 | die( "That blog does not exist. Please try <a href='http://{$current_site->domain}{$current_site->path}'>http://{$current_site->domain}{$current_site->path}</a>" ); |
|---|
| | 36 | } else { |
|---|
| | 37 | die( "No WPMU site defined on this host." ); |
|---|
| | 38 | } |
|---|
| | 39 | } |
|---|
| 47 | | if( $current_site == null && defined( "WP_INSTALLING" ) == false ) |
|---|
| 48 | | die( "No WPMU site defined on this host." ); |
|---|
| | 50 | if( $current_site == null && defined( "WP_INSTALLING" ) == false ) { |
|---|
| | 51 | $sites = $wpdb->get_results( "SELECT * FROM $wpdb->site" ); |
|---|
| | 52 | if( count( $sites ) == 1 ) { |
|---|
| | 53 | $current_site = $sites[0]; |
|---|
| | 54 | die( "That blog does not exist. Please try <a href='http://{$current_site->domain}{$current_site->path}'>http://{$current_site->domain}{$current_site->path}</a>" ); |
|---|
| | 55 | } else { |
|---|
| | 56 | die( "No WPMU site defined on this host." ); |
|---|
| | 57 | } |
|---|
| | 58 | } |
|---|