holyandrew (holyandrew) wrote in changelog,
holyandrew
holyandrew
changelog

[ljcom] r11272: LJSUP-10780: Header admin tool improveme...

Committer: akanashin
LJSUP-10780: Header admin tool improvements
U   trunk/cgi-bin/LJ/Hooks/Homepage.pm
Modified: trunk/cgi-bin/LJ/Hooks/Homepage.pm
===================================================================
--- trunk/cgi-bin/LJ/Hooks/Homepage.pm	2011-12-19 10:50:42 UTC (rev 11271)
+++ trunk/cgi-bin/LJ/Hooks/Homepage.pm	2011-12-19 13:13:14 UTC (rev 11272)
@@ -99,11 +99,11 @@
         $reskinning = LJ::ServicePageReskinning->get_active;
     }
 
-    if ($reskinning) {
+    my $u = LJ::get_remote();
+    if ($reskinning && (!$u || ($reskinning->{'render_to_paid'} || $u->in_class('plus')))) { 
         my ($css_file) = grep { $_->{'kind'} eq 'css' } @{ $reskinning->{'files'} };
         if ($css_file) {
-            my $absolute_name = 
-                "$LJ::FILEPREFIX$reskinning->{base_path}/$css_file->{filename}?v=$reskinning->{version}";
+            my $absolute_name = "$LJ::FILEPREFIX$reskinning->{base_path}/$css_file->{filename}?v=$reskinning->{version}";
             LJ::include_raw("css_link", $absolute_name);
             my $text = LJ::Lang::ml("reskinning.$reskinning->{id}");
             LJ::CleanHTML::clean(\$text, { allow => [ 'a' ] }); ## to add <a> tags

Tags: akanashin, holyandrew, 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