madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r20988: LJSUP-10439: links are changed to schedu...

Committer: sbelyaev
LJSUP-10439: links are changed to scheduled_posts.bml
U   trunk/htdocs/editjournal.bml
U   trunk/htdocs/update.bml
Modified: trunk/htdocs/editjournal.bml
===================================================================
--- trunk/htdocs/editjournal.bml	2012-01-25 11:18:24 UTC (rev 20987)
+++ trunk/htdocs/editjournal.bml	2012-01-25 11:19:55 UTC (rev 20988)
@@ -376,8 +376,7 @@
                 my $entry_url = '';
                 if ($entry_obj->is_delayed) {
                     if (!$res->{itemid}) {
-                        $entry_url = "$LJ::SITEROOT/manage/scheduled_posts.bml" .
-                                     "#entry_" . $entry_obj->delayedid;
+                        $entry_url = $entry_obj->url;
                     } else {
                         $entry_url = $res->{url};
                     }

Modified: trunk/htdocs/update.bml
===================================================================
--- trunk/htdocs/update.bml	2012-01-25 11:18:24 UTC (rev 20987)
+++ trunk/htdocs/update.bml	2012-01-25 11:19:55 UTC (rev 20988)
@@ -644,7 +644,8 @@
                         if ($itemid) {
                             $item_text = "journal=$juser&itemid=$itemid";
                         } elsif ($delayedid) {
-                            $item_text = "journal=$juser&delayedid=$delayedid";
+                            $item_text = "?usejournal=$juser" .
+                                        "#entry_$delayedid";
                         } else { return "unknown error"; }
 
                         $$body .= "<li><a href=\"/editjournal.bml?$item_text\">$ML{'.success.links.edit'}</a></li>";

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