madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r20258: LJSUP-10056: is_sticky function updated

Committer: sbelyaev
LJSUP-10056: is_sticky function updated
U   trunk/cgi-bin/LJ/DelayedEntry.pm
Modified: trunk/cgi-bin/LJ/DelayedEntry.pm
===================================================================
--- trunk/cgi-bin/LJ/DelayedEntry.pm	2011-10-07 15:42:56 UTC (rev 20257)
+++ trunk/cgi-bin/LJ/DelayedEntry.pm	2011-10-08 09:12:42 UTC (rev 20258)
@@ -180,8 +180,8 @@
 
 sub is_sticky {
     my ($self) = @_;
-    return 0 unless  $self->data->{type};
-    return $self->data->{type} eq 'sticky';
+    return 0 unless  $self->data->{sticky};
+    return $self->data->{sticky};
 }
 
 sub allowmask {
@@ -475,7 +475,7 @@
         }
     }
     @verticals_for_ad = keys %vertical_in_list;
-    
+
     return @verticals_for_ad ? @verticals_for_ad : ();
 }
 

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