changelog_bot (changelog_bot) wrote in changelog,
changelog_bot
changelog_bot
changelog

[livejournal] r18773: LJINT-416: fixed

Committer: emazin
LJINT-416: fixed
U   trunk/htdocs/gadgets/logcom.bml
Modified: trunk/htdocs/gadgets/logcom.bml
===================================================================
--- trunk/htdocs/gadgets/logcom.bml	2011-04-01 09:59:29 UTC (rev 18772)
+++ trunk/htdocs/gadgets/logcom.bml	2011-04-01 10:09:11 UTC (rev 18773)
@@ -63,18 +63,6 @@
                          'returnto=' . LJ::eurl($thispage) . '&' .
                          'sessid=' . $remote_sessid;
 
-        my $ljuser_html = $partner->ljuser_html($remote);
-
-        my $resources_html = $partner->partner_resources;
-        
-        if ($resources_html) {
-            LJ::need_res( { clean_list => 1 } );
-            LJ::need_res( @{ $partner->resources } );
-            $resources_html .= LJ::res_includes( {only_needed => 1} );
-        } else {
-            $resources_html .= LJ::res_includes();
-        }
-
         return
             LJ::Talk::talkform({
                 'embedable_form'    => 1,
@@ -87,8 +75,7 @@
                 'journalu'          => $journal,
                 'ditemid'           => $entry->ditemid,
                 'replyto'           => int ($replyto / 256),
-
-                'resources_html'    => $resources_html,
+                'resources_html'    => $partner->resources,
             });
     } else {
         ## display login widget
@@ -104,20 +91,10 @@
         my $w = LJ::Widget::LoginMulti->new;
         $w->{'no_container_div'} = 1;
 
-        my $resources_html = $partner->partner_resources;
-
-        if ($resources_html) {
-            LJ::need_res( { clean_list => 1 } );
-            LJ::need_res( @{ $partner->resources } );
-            $resources_html .= LJ::res_includes( {only_needed => 1} );
-        } else {
-            $resources_html .= LJ::res_includes();
-        }
-
         return $w->render(
             'embedded'          => 1,
             'js_check_domain'   => $js_check_domain,
-            'resources_html'    => $resources_html,
+            'resources_html'    => $partner->resources,
             'forwhat'           => 'external',
             'thispage'          => $thispage,
             'lj_auth'           => 1,

Tags: bml, changelog_bot, livejournal
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