juks (juks) wrote in changelog,
juks
juks
changelog

[ljcom] r10199: LJSUP-8070 March header

Committer: iaskarov
LJSUP-8070 March header
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-09 07:41:11 UTC (rev 10198)
+++ trunk/cgi-bin/LJ/Hooks/Homepage.pm	2011-03-09 08:26:44 UTC (rev 10199)
@@ -47,11 +47,18 @@
 LJ::register_hook("service_page_reskining", sub {
     my $params = shift || {};
     
-    LJ::need_res("stc/reskining/2011/march/noncyr/header.css"); 
+    if(LJ::SUP->is_remote_sup()) {
+        LJ::need_res("stc/reskining/2011/march/cyr/header.css"); 
+        
+        return '';
+    } else {
+        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>];
+        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 {

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