Alexander Nazarov (nfokz) wrote in changelog,
Alexander Nazarov
nfokz
changelog

[livejournal] r21918: LJSUP-11969: Add an api to insert transl...

Committer: anazarov
LJSUP-11969: Add an api to insert translated template into page
U   trunk/cgi-bin/ljviews.pl
Modified: trunk/cgi-bin/ljviews.pl
===================================================================
--- trunk/cgi-bin/ljviews.pl	2012-05-11 11:51:34 UTC (rev 21917)
+++ trunk/cgi-bin/ljviews.pl	2012-05-11 13:26:28 UTC (rev 21918)
@@ -1159,7 +1159,7 @@
     my $graphicpreviews_obj = LJ::graphicpreviews_obj();
     $graphicpreviews_obj->need_res($u);
     my $extra_js = LJ::statusvis_message_js($u);
-    $lastn_page{'head'} .= LJ::res_includes() . $extra_js;
+    $lastn_page{'head'} .= LJ::res_includes() . LJ::res_includes({only_needed => 1, only_tmpl => 1}) . $extra_js;
 
     # FOAF autodiscovery
     my $foafurl = $u->{external_foaf_url} ? LJ::eurl($u->{external_foaf_url}) : "$journalbase/data/foaf";
@@ -1665,7 +1665,7 @@
     my $graphicpreviews_obj = LJ::graphicpreviews_obj();
     $graphicpreviews_obj->need_res($u);
     my $extra_js = LJ::statusvis_message_js($u);
-    $friends_page{'head'} .= LJ::res_includes() . $extra_js;
+    $friends_page{'head'} .= LJ::res_includes() . LJ::res_includes({only_needed => 1, only_tmpl => 1}) . $extra_js;
 
     $friends_page{'head'} .=
         $vars->{'GLOBAL_HEAD'} . "\n" . $vars->{'FRIENDS_HEAD'};
@@ -2237,7 +2237,7 @@
     my $graphicpreviews_obj = LJ::graphicpreviews_obj();
     $graphicpreviews_obj->need_res($u);
     my $extra_js = LJ::statusvis_message_js($u);
-    $calendar_page{'head'} .= LJ::res_includes() . $extra_js;
+    $calendar_page{'head'} .= LJ::res_includes() . LJ::res_includes({only_needed => 1, only_tmpl => 1}) . $extra_js;
 
     $calendar_page{'months'} = "";
 
@@ -2503,7 +2503,7 @@
     my $graphicpreviews_obj = LJ::graphicpreviews_obj();
     $graphicpreviews_obj->need_res($u);
     my $extra_js = LJ::statusvis_message_js($u);
-    $day_page{'head'} .= LJ::res_includes() . $extra_js;
+    $day_page{'head'} .= LJ::res_includes() . LJ::res_includes({only_needed => 1, only_tmpl => 1}) . $extra_js;
 
     $day_page{'head'} .=
         $vars->{'GLOBAL_HEAD'} . "\n" . $vars->{'DAY_HEAD'};

Tags: anazarov, livejournal, nfokz, pl
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