Committer: gprochaev
LJSUP-9794U trunk/cgi-bin/LJ/Widget/EntryForm.pm
Modified: trunk/cgi-bin/LJ/Widget/EntryForm.pm =================================================================== --- trunk/cgi-bin/LJ/Widget/EntryForm.pm 2011-09-28 04:23:21 UTC (rev 20151) +++ trunk/cgi-bin/LJ/Widget/EntryForm.pm 2011-09-28 04:54:23 UTC (rev 20152) @@ -1545,8 +1545,7 @@ } @$album_list ]; $album_list_json = LJ::JSON->to_json ( $album_list ); - my $spaces = LJ::Fotki::UserSpace->get_spaces ( $remote ); - $available_space = $spaces->[2] || 0; + my $available_space = LJ::Fotki::UserSpace->get_available_space(); my $auth_token = LJ::Auth->sessionless_auth_token ($LJ::DOMAIN_WEB."/pics/upload", user => $remote ? $remote->user : undef); my $user_groups = LJ::JSON->to_json (LJ::Widget::Fotki::Photo->get_user_groups ($remote));