Committer: sbelyaev
LJSUP-10403: Need to return ability to create sticky posts by stylesU 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; + } } }