madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r20441: LJSUP-10221: Displaying delayed and stic...

Committer: sbelyaev
LJSUP-10221: Displaying delayed and sticky entries on the calendar
U   trunk/cgi-bin/LJ/ControlStrip.pm
Modified: trunk/cgi-bin/LJ/ControlStrip.pm
===================================================================
--- trunk/cgi-bin/LJ/ControlStrip.pm	2011-10-26 20:09:49 UTC (rev 20440)
+++ trunk/cgi-bin/LJ/ControlStrip.pm	2011-10-27 00:30:09 UTC (rev 20441)
@@ -350,7 +350,15 @@
         my $url = LJ::eurl ($proto.$hostname.$uri.$args_wq);
         $mobile_link = LJ::Lang::ml('link.mobile', { href => "href='http://m.$LJ::DOMAIN/redirect?from=$url'" });
     }
+    
+    my $daycounts = LJ::get_daycounts($journal, $remote);
+    my @early_date = @{$daycounts->[0]};
+    my @last_date = @{$daycounts->[-1]};
+    pop @early_date;
+    pop @last_date;
 
+    $tmpl->param( 'EARLY_DATE' => join(',', @early_date),
+                  'LAST_DATE'  => join(',', @last_date));
     $tmpl->param(flatten($data), link_mobile => $mobile_link );
 
     return $tmpl->output;    

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