madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r20354: LJSUP-10135: Moved to new functions

Committer: sbelyaev
LJSUP-10135: Moved to new functions
U   trunk/cgi-bin/LJ/Widget/EntryForm.pm
U   trunk/cgi-bin/ljlib.pl
U   trunk/cgi-bin/ljviews.pl
U   trunk/htdocs/editjournal.bml
Modified: trunk/cgi-bin/LJ/Widget/EntryForm.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/EntryForm.pm	2011-10-18 09:00:52 UTC (rev 20353)
+++ trunk/cgi-bin/LJ/Widget/EntryForm.pm	2011-10-18 09:14:22 UTC (rev 20354)
@@ -825,7 +825,7 @@
                 }
 
                 if ($opts->{jitemid}) {
-                    my $sticky_entry_id = $journalu->get_sticky_entry();
+                    my $sticky_entry_id = $journalu->get_sticky_entry_id();
                     if ( $sticky_entry_id eq $opts->{jitemid} ) {
                         return 'checked' 
                     }

Modified: trunk/cgi-bin/ljlib.pl
===================================================================
--- trunk/cgi-bin/ljlib.pl	2011-10-18 09:00:52 UTC (rev 20353)
+++ trunk/cgi-bin/ljlib.pl	2011-10-18 09:14:22 UTC (rev 20354)
@@ -1120,7 +1120,7 @@
     my $notafter = $opts->{'notafter'} + 0 || $LJ::EndOfTime - 1;
 
     # sticky entries array
-    my $sticky = $u->get_sticky_entry();
+    my $sticky = $u->get_sticky_entry_id();
 
     my $skip = $opts->{'skip'}+0;
     my $itemshow = $opts->{'itemshow'}+0 || 10;

Modified: trunk/cgi-bin/ljviews.pl
===================================================================
--- trunk/cgi-bin/ljviews.pl	2011-10-18 09:00:52 UTC (rev 20353)
+++ trunk/cgi-bin/ljviews.pl	2011-10-18 09:14:22 UTC (rev 20354)
@@ -2922,7 +2922,7 @@
     }
 
     foreach my $item (@$items) {
-        if ($u->get_sticky_entry() == $item->{itemid}) {
+        if ($u->get_sticky_entry_id() == $item->{itemid}) {
             push @ordered, $item;
             next;        }
 

Modified: trunk/htdocs/editjournal.bml
===================================================================
--- trunk/htdocs/editjournal.bml	2011-10-18 09:00:52 UTC (rev 20353)
+++ trunk/htdocs/editjournal.bml	2011-10-18 09:14:22 UTC (rev 20354)
@@ -117,7 +117,7 @@
         }
     
         foreach my $item (@$items) {
-            if ($u->get_sticky_entry() == $item->{itemid}) {
+            if ($u->get_sticky_entry_id() == $item->{itemid}) {
                 push @ordered, $item;
                 next;        }
     

Tags: bml, livejournal, madeon, pl, 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