fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2010-07-29 09:21 am

[dw-free] Memories pass in user name, not user object; server error

[commit: http://hg.dwscoalition.org/dw-free/rev/2140dc0e6de4]

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

Temporarily revert back to LJ::journal_base, rather than $u->journal_base.

Patch by [personal profile] fu.

Files modified:
  • cgi-bin/LJ/Entry.pm
--------------------------------------------------------------------------------
diff -r b9ed7da790c2 -r 2140dc0e6de4 cgi-bin/LJ/Entry.pm
--- a/cgi-bin/LJ/Entry.pm	Thu Jul 29 01:50:10 2010 -0700
+++ b/cgi-bin/LJ/Entry.pm	Thu Jul 29 02:21:27 2010 -0700
@@ -2154,7 +2154,7 @@ sub item_link
     # XXX: should have an option of returning a url with escaped (&)
     #      or non-escaped (&) arguments.  a new link object would be best.
     my $args = @args ? "?" . join("&", @args) : "";
-    return $u->journal_base . "/$ditemid.html$args";
+    return LJ::journal_base( $u ) . "/$ditemid.html$args";
 }
 
 # <LJFUNC>
--------------------------------------------------------------------------------

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org