"style=light" works now.

        Patch by yvi. 

diffs (21 lines):

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');
         }
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog

Reply via email to