vadvs (vadvs) wrote in changelog,
vadvs
vadvs
changelog

[livejournal] r20161: LJSUP-9890: Problem with sorting data on...

Committer: vad
LJSUP-9890: Problem with sorting data on editjournal.bml
U   trunk/htdocs/editjournal.bml
Modified: trunk/htdocs/editjournal.bml
===================================================================
--- trunk/htdocs/editjournal.bml	2011-09-28 10:21:56 UTC (rev 20160)
+++ trunk/htdocs/editjournal.bml	2011-09-28 10:37:09 UTC (rev 20161)
@@ -855,6 +855,7 @@
         }
         my $delayed_count = scalar(@$delayed_entries) - $delayed_skip;
         my $show_usual = ($items_per_page - $delayed_count) > 0 ? $items_per_page - $delayed_count : 0;
+        my $have_next_page = 0;
 
         if (($usejournal_u && ($LJ::MAX_SCROLLBACK_LASTN = 50000,
             my @recent = LJ::get_recent_items({
@@ -870,7 +871,6 @@
                 ($only_me_checked) ? ('posterid' =>  $remote->{'userid'}) : (),
             }))) || $delayed_entries) {
             
-            my $have_next_page = 0;
             if (@recent > $show_usual){
                 $have_next_page = 1;
                 pop @recent;
@@ -905,7 +905,7 @@
                                 delayed_next => $delayed_count > 0 ? $items_per_page + $delayed_skip : $delayed_skip,
                                 delayed_prev => $delayed_skip > 0 ? $delayed_skip - $items_per_page : 0,
                                 prev => $prev_page_start, 
-                                next => $next_page > 0 ? $next_page : 0
+                                next => $have_next_page ? $next_page : 0
         );
 
         my $ad = LJ::get_ads({ location => 'bml.editjournal', ljadwrapper => 1 });

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