vadvs (vadvs) wrote in changelog,
vadvs
vadvs
changelog

[livejournal] r23013: LJSUP-13771: Create method to add multip...

Committer: vad
LJSUP-13771: Create method to add multiple resources (css/js/templates/ml) to page in one call
U   trunk/cgi-bin/weblib.pl
Modified: trunk/cgi-bin/weblib.pl
===================================================================
--- trunk/cgi-bin/weblib.pl	2012-09-28 14:20:49 UTC (rev 23012)
+++ trunk/cgi-bin/weblib.pl	2012-09-28 14:26:12 UTC (rev 23013)
@@ -1318,6 +1318,7 @@
     foreach my $name (@groupnames){
         my $group = $LJ::RES_GROUP_DEPS{$name};
         next unless $group;
+        next if $LJ::REQ_GLOBAL{__need_res_group}->{$group}++;
 
         ## js, css, templates
         foreach my $resource_class (qw/js css templates/){
@@ -1331,6 +1332,11 @@
         if (my $mls = $group->{ml}){
             LJ::need_string(@$mls);
         }
+        
+        ## groups
+        if (my $groups = $group->{groups}){
+            LJ::need_res_group($_) for @$groups;
+        }
     }
 }
 

Tags: livejournal, pl, vad, vadvs
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