fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2011-08-26 04:51 am

[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 [personal profile] exor674.

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;
         }
--------------------------------------------------------------------------------

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