Андрей (andy) wrote in changelog,
Андрей
andy
changelog

[livejournal] r21285: LJSUP-11389 (Need disable flag for New P...

Committer: ailyin
LJSUP-11389 (Need disable flag for New Photohosting when it's on Prod)
U   trunk/cgi-bin/LJ/Widget/EntryForm.pm
Modified: trunk/cgi-bin/LJ/Widget/EntryForm.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/EntryForm.pm	2012-03-02 12:11:08 UTC (rev 21284)
+++ trunk/cgi-bin/LJ/Widget/EntryForm.pm	2012-03-02 13:50:17 UTC (rev 21285)
@@ -1602,9 +1602,7 @@
         'is_default' => ( $_ == $remote->prop ('user_selected_image_size') ) ? 1 : 0,
     } } @LJ::Pics::Photo::DISPLAYED_SIZES;
 
-    my $photo_sizes_json = LJ::JSON->to_json ( \@photo_sizes );
     my $album_list = [];
-    my $album_list_json = '';
     my $available_space = '';
     $album_list = [ LJ::Pics::Album->list( 'userid' => $remote->userid ) ];
     $album_list = [
@@ -1616,14 +1614,12 @@
             }
         } @$album_list
     ];
-    $album_list_json = LJ::JSON->to_json ( $album_list );
     my $available_space = LJ::Widget::Fotki::UserSpace->display_space(
         LJ::Pics->get_free_space($remote) );
 
     my $auth_token =
         LJ::Auth->sessionless_auth_token( '/' . $remote->username );
 
-    my $user_groups = LJ::JSON->to_json (LJ::Widget::Fotki::Photo->get_user_groups ($remote));
     my $ljphoto_enabled = $remote->can_upload_photo();
 
     LJ::Widget::Fotki::Upload->render();
@@ -1631,9 +1627,9 @@
     my $photouploader_params = {
         'action'          => 'add_new_post',
         'availableSpace'  => $available_space,
-        'sizesData'       => $photo_sizes_json,
-        'albumsData'      => $album_list_json,
-        'privacyData'     => $user_groups,
+        'sizesData'       => \@photo_sizes,
+        'albumsData'      => $album_list,
+        'privacyData'     => LJ::Widget::Fotki::Photo->get_user_groups($remote),
         'type'            => 'upload',
         'guid'            => $auth_token,
         'pics_production' => LJ::is_enabled('pics_production'),

Tags: ailyin, andy, livejournal, pm
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