diff options
| author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2005-11-08 12:13:51 +0000 |
|---|---|---|
| committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2005-11-08 12:13:51 +0000 |
| commit | 1022926b6cfce08b0323044edcb602e942fa80cd (patch) | |
| tree | e92999e36b3f73386d44914b2bb56a15b3eda40b /wp-inst/wp-settings.php | |
| parent | e57a203929408d17a888c9e26107a47c10f687a7 (diff) | |
Updated caching on sitestats.
is_public -> public, make sure to run upgrade script once!
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@424 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-inst/wp-settings.php')
| -rw-r--r-- | wp-inst/wp-settings.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/wp-inst/wp-settings.php b/wp-inst/wp-settings.php index b999593..fe52c46 100644 --- a/wp-inst/wp-settings.php +++ b/wp-inst/wp-settings.php @@ -117,7 +117,7 @@ if( $current_blog == false ) { is_installed(); } $blog_id = $current_blog->blog_id; -$is_public = $current_blog->is_public; +$public = $current_blog->public; $site_id = $current_blog->site_id; if( $site_id == 0 ) $site_id = 1; @@ -157,7 +157,7 @@ if( $blog_id == false ) { } } -if( $is_public == 'no' ) { +if( $public == '0' ) { // need to put checks in here? // A hook? die( "This blog is private." ); @@ -265,6 +265,11 @@ $wpdb->show_errors(); $is_archived = get_settings( "is_archived" ); if( $is_archived == 'yes' ) { + update_archived( $wpdb->blogid, 1 ); + die( "This blog has been archived or suspended temporarily. Please check back later." ); +} + +if( $current_blog->archived == '1' ) { die( "This blog has been archived or suspended temporarily. Please check back later." ); } |
