changelog_bot (changelog_bot) wrote in changelog,
changelog_bot
changelog_bot
changelog

[ljcom] r10338: LJINT-416: fixed

Committer: emazin
LJINT-416: fixed
U   trunk/htdocs/gadgets/loginstatus.bml
Modified: trunk/htdocs/gadgets/loginstatus.bml
===================================================================
--- trunk/htdocs/gadgets/loginstatus.bml	2011-04-01 09:06:01 UTC (rev 10337)
+++ trunk/htdocs/gadgets/loginstatus.bml	2011-04-01 09:44:38 UTC (rev 10338)
@@ -48,9 +48,14 @@
         $partner_remote_ljuser = $partner->ljuser_html($remote);
     }
 
-    my $resources_html = $partner->resources_html
-                      || LJ::res_includes();
+    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();
+
     my $template = LJ::HTML::Template->new(
         { use_expr => 1 },    # force HTML::Template::Pro with Expr support
         filename          => "$ENV{'LJHOME'}/templates/Identity/LoginStatus.tmpl",
@@ -69,4 +74,4 @@
 
     return $template->output;
 }
-_code?>
\ No newline at end of file
+_code?>

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