juks (juks) wrote in changelog,
juks
juks
changelog

[ljcom] r10197: LJSUP-8076 March header non-cyr

Committer: iaskarov
LJSUP-8076 March header non-cyr
U   trunk/cgi-bin/LJ/Hooks/Homepage.pm
Modified: trunk/cgi-bin/LJ/Hooks/Homepage.pm
===================================================================
--- trunk/cgi-bin/LJ/Hooks/Homepage.pm	2011-03-05 08:39:31 UTC (rev 10196)
+++ trunk/cgi-bin/LJ/Hooks/Homepage.pm	2011-03-05 08:51:53 UTC (rev 10197)
@@ -44,33 +44,16 @@
     return 1;
 }
 
-sub _8_march_2011_header { ## 8 march, Russia
-    my $params = shift;
-    my $time = time;
-    return unless (1299272400 < $time and $time < 1299618000); ## between 05-03-2011 00:00:00 MSK and 09-03-2011 00:00:00 MSK
-    return unless LJ::SUP->is_remote_sup();
-    LJ::need_res("stc/reskining/2011/march/8/header.css");
-    return 1;
-
-}
-
-
 LJ::register_hook("service_page_reskining", sub {
     my $params = shift || {};
-
-    ## Only for 05-09 March 2011
-    return if _8_march_2011_header($params);
     
-    LJ::need_res("stc/reskining/2011/january/header.css");
-    my $text = LJ::Lang::ml('reskining.january2011');
+    LJ::need_res("stc/reskining/2011/march/noncyr/header.css"); 
+    
+    my $text = LJ::Lang::ml('reskining.march2011');
     LJ::CleanHTML::clean(\$text); ## to expand <lj-user> tags 
     return qq[<dl class="b-reskining-about"><dt></dt><dd>$text</dd></dl>];
-
 });
 
-
-
-
 LJ::register_hook("homepage_sidebar", sub {
     my $u = shift;
     my %opts = @_;

Tags: juks, 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