[dw-free] style=mine not working on journal pages
[commit: http://hg.dwscoalition.org/dw-free/rev/743c8b7352aa]
http://bugs.dwscoalition.org/show_bug.cgi?id=3912
Look at the user who owns not the style, not the user of the current
journal. (Fallback on current journal if no style user)
Patch by
exor674.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=3912
Look at the user who owns not the style, not the user of the current
journal. (Fallback on current journal if no style user)
Patch by
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Files modified:
- cgi-bin/LJ/S2.pm
-------------------------------------------------------------------------------- diff -r be7fae540c15 -r 743c8b7352aa cgi-bin/LJ/S2.pm --- a/cgi-bin/LJ/S2.pm Fri Aug 26 10:07:53 2011 +0800 +++ b/cgi-bin/LJ/S2.pm Fri Aug 26 12:50:51 2011 +0800 @@ -106,7 +106,9 @@ $ctx->[S2::SCRATCH]->{siteviews_enabled} = 1; $ctx->[S2::PROPS]->{SITEVIEWS} = $siteviews_class; } else { - if ( ! LJ::S2::use_journalstyle_entry_page( $u ) && ( $view eq "entry" || $view eq "reply" ) ) { + my $style_u = $opts->{style_u} || $u; + + if ( ! LJ::S2::use_journalstyle_entry_page( $style_u ) && ( $view eq "entry" || $view eq "reply" ) ) { ${$opts->{'handle_with_bml_ref'}} = 1; return; } --------------------------------------------------------------------------------