wisest owl (wisest_owl) wrote in changelog,
wisest owl
wisest_owl
changelog

[livejournal] r20152: LJSUP-9794

Committer: gprochaev
LJSUP-9794

U   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));

Tags: livejournal, pm, wisest-owl
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments