madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r20613: LJSUP-10494: There is incorrect number o...

Committer: sbelyaev
LJSUP-10494: There is incorrect number of posts on the page scheduled_posts.bml
U   trunk/htdocs/manage/scheduled_posts.bml
Modified: trunk/htdocs/manage/scheduled_posts.bml
===================================================================
--- trunk/htdocs/manage/scheduled_posts.bml	2011-11-23 13:51:51 UTC (rev 20612)
+++ trunk/htdocs/manage/scheduled_posts.bml	2011-11-23 14:04:05 UTC (rev 20613)
@@ -48,13 +48,13 @@
 
         if ($opts{'prev'} || $opts{'next'} || !$is_first_page ) {
             if ( $opts{'prev'} || !$is_first_page ) {
-                $link_prev = "$LJ::SITEROOT/$page_name$getextra" .
+                $link_prev = "$LJ::SITEROOT/manage/$page_name$getextra" .
                              ($getextra ? "&" : "?") .
                              "skip=$opts{prev}";
             }
 
             if ($opts{'next'}) {
-                $link_next = "$LJ::SITEROOT/$page_name$getextra" .
+                $link_next = "$LJ::SITEROOT/manage/$page_name$getextra" .
                              ($getextra ? "&" : "?") .
                              "skip=$opts{next}";
             }
@@ -118,6 +118,9 @@
                                                                      'only_my' => $only_me_checked, });
 
     my $have_next_page =  scalar @$delayed_entries > $items_per_page;
+    if ($have_next_page) {
+        pop @$delayed_entries;
+    }
     my @recent_entries = $append_delayed->($usejournal_u, $delayed_entries);
 
 

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