madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r20536: LJSUP-10403: Need to return ability to c...

Committer: sbelyaev
LJSUP-10403: Need to return ability to create sticky posts by styles
U   trunk/cgi-bin/LJ/Customize.pm
Modified: trunk/cgi-bin/LJ/Customize.pm
===================================================================
--- trunk/cgi-bin/LJ/Customize.pm	2011-11-15 06:35:52 UTC (rev 20535)
+++ trunk/cgi-bin/LJ/Customize.pm	2011-11-15 07:33:17 UTC (rev 20536)
@@ -544,12 +544,14 @@
             $prop = S2::get_property($lyr_core->{'s2lid'}, $prop);
             next unless ref $prop;
         }
-        
-        if ($prop->{'name'} eq 'sticky_subject' ||
-            $prop->{'name'} eq 'sticky_post' ) {
-            my $value = $class->get_s2_prop_values('sticky_post', $u, $style);
-            if (!$value) {
-                next;
+       
+        if (LJ::is_enabled("delayed_entries")) { 
+            if ($prop->{'name'} eq 'sticky_subject' ||
+                $prop->{'name'} eq 'sticky_post' ) {
+                my $value = $class->get_s2_prop_values('sticky_post', $u, $style);
+                if (!$value) {
+                    next;
+                }
             }
         }
 

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