changelog_bot (changelog_bot) wrote in changelog,
changelog_bot
changelog_bot
changelog

[livejournal] r18772: LJINT-416: fix

Committer: emazin
LJINT-416: fix
U   trunk/htdocs/gadgets/logcom.bml
Modified: trunk/htdocs/gadgets/logcom.bml
===================================================================
--- trunk/htdocs/gadgets/logcom.bml	2011-04-01 09:43:48 UTC (rev 18771)
+++ trunk/htdocs/gadgets/logcom.bml	2011-04-01 09:59:29 UTC (rev 18772)
@@ -69,9 +69,11 @@
         
         if ($resources_html) {
             LJ::need_res( { clean_list => 1 } );
-            LJ::need_res( @{ $partner->{resources} } );
+            LJ::need_res( @{ $partner->resources } );
+            $resources_html .= LJ::res_includes( {only_needed => 1} );
+        } else {
+            $resources_html .= LJ::res_includes();
         }
-        $resources_html .= LJ::res_includes();
 
         return
             LJ::Talk::talkform({
@@ -106,9 +108,11 @@
 
         if ($resources_html) {
             LJ::need_res( { clean_list => 1 } );
-            LJ::need_res( @{ $partner->{resources} } );
+            LJ::need_res( @{ $partner->resources } );
+            $resources_html .= LJ::res_includes( {only_needed => 1} );
+        } else {
+            $resources_html .= LJ::res_includes();
         }
-        $resources_html .= LJ::res_includes();
 
         return $w->render(
             'embedded'          => 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