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-08-19 06:25 am

[dw-free] Removal of S1 has broken the dreamwidth.org/mobile page

[commit: http://hg.dwscoalition.org/dw-free/rev/149a683e172b]

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

Fix /mobile/read by allowing dateformats to work for old format callers.

Patch by [personal profile] kareila.

Files modified:
  • cgi-bin/LJ/Entry.pm
--------------------------------------------------------------------------------
diff -r a4aafb942b4d -r 149a683e172b cgi-bin/LJ/Entry.pm
--- a/cgi-bin/LJ/Entry.pm	Tue Aug 18 15:37:54 2009 -0500
+++ b/cgi-bin/LJ/Entry.pm	Wed Aug 19 06:25:09 2009 +0000
@@ -1594,7 +1594,7 @@ sub get_log2_recent_user
         }
 
         # date conversion
-        if ($opts->{'dateformat'} eq "S2") {
+        if ( ! $opts->{'dateformat'} || $opts->{'dateformat'} eq "S2" ) {
             $item->{'alldatepart'} = LJ::alldatepart_s2($item->{'eventtime'});
 
             # conversion to get the system time of this entry
--------------------------------------------------------------------------------

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