Андрей (andy) wrote in changelog,
Андрей
andy
changelog

[ljcom] r9859: LJSUP-7630 (New year's header (lj.com, S...

Committer: ailyin
LJSUP-7630 (New year's header (lj.com, SUP))
U   trunk/cgi-bin/LJ/Hooks/Homepage.pm
Modified: trunk/cgi-bin/LJ/Hooks/Homepage.pm
===================================================================
--- trunk/cgi-bin/LJ/Hooks/Homepage.pm	2010-12-17 04:55:30 UTC (rev 9858)
+++ trunk/cgi-bin/LJ/Hooks/Homepage.pm	2010-12-17 08:44:02 UTC (rev 9859)
@@ -48,7 +48,18 @@
     my $params = shift || {};
    
     if (LJ::SUP->is_remote_sup) {
-        LJ::need_res("stc/reskining/december2010/cyr/december2010.css");
+        my $time        = time;
+
+        # timestamps here are MSK
+        my $dec_27_2010 = 1293397200;
+        my $jan_11_2011 = 1294693200;
+
+        if ( $time < $dec_27_2010 ) {
+            LJ::need_res("stc/reskining/december2010/cyr/december2010.css");
+        } elsif ( $time < $jan_11_2011 ) {
+            LJ::need_res("stc/reskining/december2010/cyr/ny2010.css");
+        }
+
         return '';
     } else {
         LJ::need_res("stc/reskining/december2010/noncyr/december2010.css");

Tags: andy, ljcom, pm
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