}
if ( empty( $parsed['path'] ) )
$parsed['path'] = '/';
- if ( !$blog = get_blog_info( $parsed['host'], $parsed['path'] ) ) {
+ $blog = get_blog_details( array( 'domain' => $parsed['host'], 'path' => $parsed['path'] ) );
+ if ( !$blog ) {
fwrite( STDERR, "Error: Could not find blog\n" );
exit();
}
* @return bool
*/
function is_user_over_quota() {
- global $current_user, $current_blog;
+ global $current_blog;
if ( function_exists( 'upload_is_user_over_quota' ) ) {
if ( upload_is_user_over_quota( 1 ) ) {