afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)
afuna ([personal profile] afuna) wrote in [site community profile] changelog2009-06-29 04:16 pm

[dw-free] alias ?format=light to ?style=light

[commit: http://hg.dwscoalition.org/dw-free/rev/681d198e4697]

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

"style=light" works now.

Patch by [personal profile] yvi.

Files modified:
  • cgi-bin/LJ/User.pm
--------------------------------------------------------------------------------
diff -r 39ca8780a4b2 -r 681d198e4697 cgi-bin/LJ/User.pm
--- a/cgi-bin/LJ/User.pm	Mon Jun 29 15:30:51 2009 +0000
+++ b/cgi-bin/LJ/User.pm	Mon Jun 29 16:15:41 2009 +0000
@@ -8454,7 +8454,7 @@ sub make_journal
     }
 
     # signal to LiveJournal.pm that we can't handle this
-    if (($stylesys == 1 || $geta->{'format'} eq 'light') &&
+    if (($stylesys == 1 || $geta->{'format'} eq 'light' || $geta->{'style'} eq 'light') &&
         ({ entry=>1, reply=>1, month=>1, tag=>1 }->{$view} || ($view eq 'lastn' && ($geta->{tag} || $geta->{security})))) {
 
         # pick which fallback method (s2 or bml) we'll use by default, as configured with
@@ -8477,7 +8477,7 @@ sub make_journal
         # If they specified ?format=light, it means they want a page easy
         # to deal with text-only or on a mobile device.  For now that means
         # render it in the lynx site scheme.
-        if ($geta->{'format'} eq 'light') {
+        if ( $geta->{'format'} eq 'light' || $geta->{'style'} eq 'light' ) {
             $fallback = 'bml';
             $r->note(bml_use_scheme => 'lynx');
         }
--------------------------------------------------------------------------------
cesy: "Cesy" - An old-fashioned quill and ink (Default)

Changelog

[personal profile] cesy 2009-06-30 10:28 am (UTC)(link)
Oh, cool. I always wondered why it was "format=light" rather than "style=light". It makes sense now.