[dw-free] Using a certain username in a user tag breaks Dreamwidth
[commit: http://hg.dwscoalition.org/dw-free/rev/f33827bd2627]
http://bugs.dwscoalition.org/show_bug.cgi?id=3999
get_renamed_user should be aware of whether the caller wants an array (user,
username), or wants just the user. (aka: ...don't break profile pages)
Patch by
fu.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=3999
get_renamed_user should be aware of whether the caller wants an array (user,
username), or wants just the user. (aka: ...don't break profile pages)
Patch by
Files modified:
- cgi-bin/LJ/User.pm
--------------------------------------------------------------------------------
diff -r 40744a8bb951 -r f33827bd2627 cgi-bin/LJ/User.pm
--- a/cgi-bin/LJ/User.pm Mon Oct 31 16:19:08 2011 +0800
+++ b/cgi-bin/LJ/User.pm Mon Oct 31 16:20:49 2011 +0800
@@ -1037,7 +1037,7 @@
# return both the user object, and the last known renamedto username
# in case the user object isn't valid
- return ( $u, $username );
+ return wantarray ? ( $u, $username ) : $u;
}
--------------------------------------------------------------------------------
