madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r22821: LJSUP-13277: JS need to support getting ...

Committer: sbelyaev
LJSUP-13277: JS need to support getting templates from (l-)stat
U   trunk/cgi-bin/weblib.pl
Modified: trunk/cgi-bin/weblib.pl
===================================================================
--- trunk/cgi-bin/weblib.pl	2012-09-06 07:18:58 UTC (rev 22820)
+++ trunk/cgi-bin/weblib.pl	2012-09-06 07:41:12 UTC (rev 22821)
@@ -1379,6 +1379,7 @@
         my $src  = $LJ::IS_SSL? $LJ::SSLROOT : $LJ::STATPREFIX;
            $src .= '/tmpl/??';
 
+        my $timestamp = int(time() / $LJ::TEMPLATES_UPDATE_TIME);
         foreach my $extension ('.tmpl', '.jqtmpl') {
             my $mtime = 0;
             $ret .= join join(',',
@@ -1392,7 +1393,7 @@
                 } grep {
                     -1 != index $_, $extension
                 } @LJ::SITEWIDE_TEMPLATES, @LJ::INCLUDE_TEMPLATE
-            ), qq{<script type="text/javascript" src="$src}, qq{?v=$mtime;uselang=$lang"></script>\n}; 
+            ), qq{<script type="text/javascript" src="$src}, qq{?v=$mtime&tm=$timestamp;uselang=$lang"></script>\n}; 
         }
     } else {
         foreach my $template (@LJ::SITEWIDE_TEMPLATES, @LJ::INCLUDE_TEMPLATE) {

Tags: livejournal, madeon, pl, sbelyaev
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