[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
yvi.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=586
"style=light" works now.
Patch by
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
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'); } --------------------------------------------------------------------------------
Changelog