mark: A photo of Mark kneeling on top of the Taal Volcano in the Philippines. It was a long hike. (Default)
Mark Smith ([staff profile] mark) wrote in [site community profile] changelog2009-04-21 05:41 am

[dw-free] Edit entries/update journal confirmation page linking to wrong location

[commit: http://hg.dwscoalition.org/dw-free/rev/9d3ec3a36560]

http://bugs.dwscoalition.org/show_bug.cgi?id=902

Fix link to edit entry.

Patch by [personal profile] allen.

Files modified:
  • htdocs/editjournal.bml
--------------------------------------------------------------------------------
diff -r d286fa06c8e7 -r 9d3ec3a36560 htdocs/editjournal.bml
--- a/htdocs/editjournal.bml	Tue Apr 21 05:37:35 2009 +0000
+++ b/htdocs/editjournal.bml	Tue Apr 21 05:41:47 2009 +0000
@@ -236,7 +236,7 @@ body<=
                 my $journalu = $usejournal ? $usejournal_u : $u;
                 my $j_base = $journalu->journal_base;
                 my $entry_url = LJ::item_link($journalu, $itemid, $res{anum});
-                my $edititemlink = "/editjournal.bml?journal=$journalu&itemid=$ditemid";
+                my $edititemlink = "/editjournal.bml?itemid=$ditemid";
 
                 # update crossposts
                 my $xpost_result = '';
@@ -325,7 +325,7 @@ body<=
                 $result .= "<div id='fromhere'>$ML{'.success.fromhere'}<ul>";
                 $result .= "<li><a href='$entry_url'>$ML{'.success.fromhere.viewentry'}</a></li>" unless $deleted;
                 $result .= "<li><a href='$j_base'>$ML{'.success.fromhere.viewentries'}</a></li>";
-                $result .= "<li><a href='$edititemlink'>$ML{'.success.fromhere.manageentries'}</a></li>";
+                $result .= "<li><a href='$LJ::SITEROOT/editjournal.bml'>$ML{'.success.fromhere.manageentries'}</a></li>";
                 $result .= "</ul></div>";
                 $result .= "</td>";
 
--------------------------------------------------------------------------------